Skip to content

Allow easy opt-out from tests using network services #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ptrcnull opened this issue Mar 30, 2025 · 1 comment
Open

Allow easy opt-out from tests using network services #648

ptrcnull opened this issue Mar 30, 2025 · 1 comment

Comments

@ptrcnull
Copy link

in some environments, like building packages for Linux distributions, external network connections are not allowed

right now, python-future has two tests that perform network connections:

  • tests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_moves_urllib_request_http
  • tests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_urllib_request_http

it would be nice to provide an easy way to disable those tests, e.g. with an environmental variable ( see https://github.com/pypa/distlib/blob/32301789a7815de0e74f57fe013ae52af717a3da/tests/test_index.py#L343 )

@ptrcnull
Copy link
Author

ah, there's more tests, like tests/test_future/test_urllibnet.py - but those actually skip on Resource not available errors

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

No branches or pull requests

1 participant