You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm reading the output right, even though the requests were supposed to be blocked, requests attempts to resolve example.com and fails with NameResolutionError.
Describe the bug
When running the test suite in an environment without Internet access, I'm getting the following test failures:
If I'm reading the output right, even though the requests were supposed to be blocked, requests attempts to resolve
example.com
and fails withNameResolutionError
.Full log: test-output.txt
To Reproduce
Steps to reproduce the behavior:
tox -e py311
(or alike) to prepare the test envsudo unshare -n
ifconfig lo up
su - <regularuser>
cd <pytest-recording-checkout>
. .tox/py311/bin/activate
python -m pytest
Expected behavior
Tests passing (i.e. no DNS requests should be made if network access is blocked).
Environment (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: