Skip to content

Bump pytest requirement to >=9.0.3#374

Merged
oxo42 merged 8 commits intofacebook:update-pytestfrom
oxo42:update-pytest
Apr 27, 2026
Merged

Bump pytest requirement to >=9.0.3#374
oxo42 merged 8 commits intofacebook:update-pytestfrom
oxo42:update-pytest

Conversation

@oxo42
Copy link
Copy Markdown
Contributor

@oxo42 oxo42 commented Apr 27, 2026

This fixed https://github.com/facebook/TestSlide/security/dependabot/1

  • Verify that tests run in CI

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 27, 2026
oxo42 added 7 commits April 27, 2026 08:48
…nization

Pygments 2.20 emits the inter-token space before an underlined identifier
as its own Whitespace token, wrapping it in default-color ANSI codes
(\x1b[37m \x1b[39;49;00m). Update the expected literal accordingly.
typeguard 4.x renders typing.List[str] as list[str] in error messages.
Update assertRaisesRegex pattern in
raises_TypeCheckError_when_returning_coroutine_instance to match.
Allows `pytest pytest-testslide/tests` to run from the repo root without
needing to pre-set PYTHONPATH. Previously only the Makefile's pytest_tests
target worked, since it exported PYTHONPATH=pytest-testslide:. — the bare
command failed because the inner pytester run could not import
pytest_testslide or testslide (neither is installed in the venv; both are
sourced in-tree).
mypy cannot narrow Union[Mock, StrictMock] through isinstance against a
runtime-looked-up class (mock_class comes from MOCK_TEMPLATE_EXTRACTORS
iteration), so the call to extract_mock_template was rejected. Add an
explicit cast to express what the isinstance check guarantees.
- Drop unused `import sys` from testslide/bdd/lib.py and
  testslide/core/__init__.py (F401).
- Suppress F824 on `global` statements in mock_callable.py that declare
  names which are read but not assigned in scope. Collapsed multi-line
  global declarations onto one line so the noqa comment can be attached.
@oxo42 oxo42 merged commit 17714cb into facebook:update-pytest Apr 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant