diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_arcs.py | 2 | ||||
-rw-r--r-- | tests/test_oddball.py | 1 | ||||
-rw-r--r-- | tests/test_process.py | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index f4a11839..6a65d4fe 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1530,6 +1530,8 @@ class OptimizedIfTest(CoverageTest): arcz_missing = "" if env.PYBEHAVIOR.pep626: arcz = ".1 12 23 34 42 37 72 28 8." + elif env.PYBEHAVIOR.optimize_if_not_debug3: + arcz = ".1 12 23 32 37 72 28 8." elif env.PYBEHAVIOR.optimize_if_not_debug2: arcz = ".1 12 23 35 52 37 72 28 8." elif env.PYBEHAVIOR.optimize_if_not_debug: diff --git a/tests/test_oddball.py b/tests/test_oddball.py index b59e6395..19c93be5 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -148,6 +148,7 @@ class MemoryLeakTest(CoverageTest): """ @flaky @pytest.mark.skipif(env.JYTHON, reason="Don't bother on Jython") + @pytest.mark.skipif(not env.C_TRACER, reason="Only the C tracer has refcounting issues") def test_for_leaks(self): # Our original bad memory leak only happened on line numbers > 255, so # make a code object with more lines than that. Ugly string mumbo diff --git a/tests/test_process.py b/tests/test_process.py index bf16a2b2..10312232 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1691,7 +1691,7 @@ def venv_world_fixture(tmp_path_factory): venv_world = tmp_path_factory.mktemp("venv_world") with change_dir(venv_world): # Create a virtualenv. - run_command("python -m virtualenv venv") + run_command("python -m venv venv") # A third-party package that installs a few different packages. make_file("third_pkg/third/__init__.py", """\ |