0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 08:31:01 +03:00

Python Add test for NIX_PYTHONPREFIX

This commit is contained in:
adisbladis 2020-03-14 15:59:42 +00:00
parent d88a7735d2
commit 05571d3059
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
2 changed files with 2 additions and 1 deletions

View file

@ -35,7 +35,7 @@ class TestCasePython(unittest.TestCase):
def test_site_prefix(self):
self.assertTrue(sys.prefix in site.PREFIXES)
@unittest.skipIf(sys.version_info.major==2, "Python 2 does not have base_prefix")
@unittest.skipIf(IS_PYPY or sys.version_info.major==2, "Python 2 does not have base_prefix")
def test_base_prefix(self):
if IS_VENV:
self.assertNotEqual(sys.prefix, sys.base_prefix)