perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / coverage / patches / 06-PYTHONPATH.patch
blobc598ec1dd249eefc88b380d8e4eadf1f156920d9
1 We set PYTHONPATH during testing.
3 --- coverage-7.6.9/tests/coveragetest.py.orig
4 +++ coverage-7.6.9/tests/coveragetest.py
5 @@ -443,11 +443,9 @@
7 def add_test_modules_to_pythonpath(self) -> None:
8 """Add our test modules directory to PYTHONPATH."""
9 - # Check that there isn't already a PYTHONPATH.
10 - assert os.getenv("PYTHONPATH") is None
11 testmods = nice_file(self.working_root(), "tests/modules")
12 zipfile = nice_file(self.working_root(), "tests/zipmods.zip")
13 - self.set_environ("PYTHONPATH", testmods + os.pathsep + zipfile)
14 + self.set_environ("PYTHONPATH", os.getenv("PYTHONPATH") + os.pathsep + testmods + os.pathsep + zipfile)
16 def working_root(self) -> str:
17 """Where is the root of the coverage.py working tree?"""
18 --- coverage-7.6.9/tests/test_testing.py.orig
19 +++ coverage-7.6.9/tests/test_testing.py
20 @@ -30,7 +30,6 @@
21 def test_xdist_sys_path_nuttiness_is_fixed() -> None:
22 # See conftest.py:fix_xdist_sys_path
23 assert sys.path[1] != ""
24 - assert os.getenv("PYTHONPATH") is None
27 def test_assert_count_equal() -> None: