@@ -103,7 +103,7 @@ def test_process_env_constructor():
103
103
with pytest .raises (
104
104
ValueError , match = r"^The environment does not have a bin directory\.$"
105
105
):
106
- penv .bin # noqa: B018
106
+ print ( penv .bin )
107
107
108
108
penv = nox .virtualenv .ProcessEnv (env = {"SIGIL" : "123" })
109
109
assert penv .env ["SIGIL" ] == "123"
@@ -561,7 +561,7 @@ def test__resolved_interpreter_invalid_numerical_id(which, make_one, input_):
561
561
venv , _ = make_one (interpreter = input_ )
562
562
563
563
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
564
- venv ._resolved_interpreter # noqa: B018
564
+ print ( venv ._resolved_interpreter )
565
565
566
566
which .assert_called_once_with (input_ )
567
567
@@ -572,7 +572,7 @@ def test__resolved_interpreter_32_bit_non_windows(which, make_one):
572
572
venv , _ = make_one (interpreter = "3.6-32" )
573
573
574
574
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
575
- venv ._resolved_interpreter # noqa: B018
575
+ print ( venv ._resolved_interpreter )
576
576
which .assert_called_once_with ("3.6-32" )
577
577
578
578
@@ -654,7 +654,7 @@ def special_run(cmd, *args, **kwargs):
654
654
655
655
# Okay now run the test.
656
656
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
657
- venv ._resolved_interpreter # noqa: B018
657
+ print ( venv ._resolved_interpreter )
658
658
659
659
which .assert_has_calls ([mock .call ("python3.6" ), mock .call ("py" )])
660
660
@@ -700,7 +700,7 @@ def test__resolved_interpreter_windows_path_and_version_fails(
700
700
patch_sysfind (("python" , "python.exe" ), sysfind_result , sysexec_result )
701
701
702
702
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
703
- venv ._resolved_interpreter # noqa: B018
703
+ print ( venv ._resolved_interpreter )
704
704
705
705
706
706
@mock .patch ("nox.virtualenv._SYSTEM" , new = "Windows" )
@@ -715,17 +715,18 @@ def test__resolved_interpreter_not_found(which, make_one):
715
715
716
716
# Run the test.
717
717
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
718
- venv ._resolved_interpreter # noqa: B018
718
+ print ( venv ._resolved_interpreter )
719
719
720
720
721
721
@mock .patch ("nox.virtualenv._SYSTEM" , new = "Windows" )
722
+ @mock .patch ("nox.virtualenv.locate_via_py" , new = lambda _ : None )
722
723
def test__resolved_interpreter_nonstandard (make_one ):
723
724
# Establish that we do not try to resolve non-standard locations
724
725
# on Windows.
725
726
venv , _ = make_one (interpreter = "goofy" )
726
727
727
728
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
728
- venv ._resolved_interpreter # noqa: B018
729
+ print ( venv ._resolved_interpreter )
729
730
730
731
731
732
@mock .patch ("nox.virtualenv._SYSTEM" , new = "Linux" )
@@ -749,12 +750,12 @@ def test__resolved_interpreter_cache_failure(which, make_one):
749
750
750
751
assert venv ._resolved is None
751
752
with pytest .raises (nox .virtualenv .InterpreterNotFound ) as exc_info :
752
- venv ._resolved_interpreter # noqa: B018
753
+ print ( venv ._resolved_interpreter )
753
754
caught = exc_info .value
754
755
755
756
which .assert_called_once_with ("3.7-32" )
756
757
# Check the cache and call again to make sure it is used.
757
758
assert venv ._resolved is caught
758
759
with pytest .raises (nox .virtualenv .InterpreterNotFound ):
759
- venv ._resolved_interpreter # noqa: B018
760
+ print ( venv ._resolved_interpreter )
760
761
assert which .call_count == 1
0 commit comments