This pull request introduces a modification to the test conditions for a specific test case in test_modutils.py. The change aims to enhance the test's flexibility by incorporating an environment variable check that allows the test to be skipped if network access is intentionally restricted.
Summary
Modified the @pytest.mark.skipif condition for the test_file_info_from_modpath__SixMetaPathImporter function in tests/test_modutils.py.
The test now checks if the NO_NETWORK environment variable is set to '1', in addition to the existing check for the urllib3 version. This allows skipping the test in environments without network access or where network tests are deliberately avoided.
This change ensures that the test suite can be more adaptable to different testing environments, particularly in cases where external network access is restricted or not available.
Fixes #3.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request introduces a modification to the test conditions for a specific test case in
test_modutils.py
. The change aims to enhance the test's flexibility by incorporating an environment variable check that allows the test to be skipped if network access is intentionally restricted.Summary
@pytest.mark.skipif
condition for thetest_file_info_from_modpath__SixMetaPathImporter
function intests/test_modutils.py
.NO_NETWORK
environment variable is set to'1'
, in addition to the existing check for theurllib3
version. This allows skipping the test in environments without network access or where network tests are deliberately avoided.Fixes #3.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.