diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-15 07:30:20 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-01-15 14:01:33 -0500 |
commit | 41f1e0c7075b3b9ab73f1628559bc919d5de3775 (patch) | |
tree | b4e57810194c79fdad5d96f54f1e2087294b4c5c /tests/test_process.py | |
parent | 73d4c5695eee4ee5f57c4cc1ad4b23d90adc6a6f (diff) | |
download | python-coveragepy-git-41f1e0c7075b3b9ab73f1628559bc919d5de3775.tar.gz |
test: skip tests suffering from bpo 46389 (3.11)
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 8bbfe99c..f13fe014 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -552,6 +552,10 @@ class ProcessTest(CoverageTest): @pytest.mark.expensive @pytest.mark.skipif(not env.C_TRACER, reason="fullcoverage only works with the C tracer.") @pytest.mark.skipif(env.METACOV, reason="Can't test fullcoverage when measuring ourselves") + @pytest.mark.skipif( + (3, 11, 0, "alpha", 4) <= env.PYVERSION, + reason="avoid 3.11 bug lineno==None: https://bugs.python.org/issue46389", + ) def test_fullcoverage(self): # fullcoverage is a trick to get stdlib modules measured from # the very beginning of the process. Here we import os and @@ -561,9 +565,7 @@ class ProcessTest(CoverageTest): print("FOOEY == %s" % os.getenv("FOOEY")) """) - fullcov = os.path.join( - os.path.dirname(coverage.__file__), "fullcoverage" - ) + fullcov = os.path.join(os.path.dirname(coverage.__file__), "fullcoverage") self.set_environ("FOOEY", "BOO") self.set_environ("PYTHONPATH", fullcov) out = self.run_command("python -X frozen_modules=off -m coverage run -L getenv.py") |