Skip to content

Conversation

@mgorny
Copy link
Contributor

@mgorny mgorny commented Jul 18, 2025

Move third-party (pylibmc and MySQLdb) imports to specific tests, rather than importing them in global scope. This makes it easier to test a subset of the package without having to install all the dependencies, which can be particularly problematic when wheels are not provided (e.g. on PyPy3.11 or CPython 3.14).


This change is Reviewable

Move third-party (`pylibmc` and `MySQLdb`) imports to specific tests,
rather than importing them in global scope.  This makes it easier
to test a subset of the package without having to install all
the dependencies, which can be particularly problematic when wheels
are not provided (e.g. on PyPy3.11 or CPython 3.14).
@nicoddemus
Copy link
Member

Thanks! Do you need a new release with this change?

@mgorny
Copy link
Contributor Author

mgorny commented Jul 18, 2025

Thanks. No release needed, it's something we've patched for a long time already — just noticed I could upstream a better change.

@nicoddemus nicoddemus merged commit a7e8407 into pytest-dev:main Jul 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants