| 1 | import os |
| 2 | import sys |
| 3 | import unittest |
| 4 | import site |
| 5 | |
| 6 | |
| 7 | class TestSysConfigPypy(unittest.TestCase): |
| 8 | def test_install_schemes(self): |
| 9 | # User-site etc. paths should have "pypy" and not "python" |
| 10 | # inside them. |
| 11 | if site.ENABLE_USER_SITE: |
| 12 | parts = site.USER_SITE.lower().split(os.path.sep) |
| 13 | assert any(x.startswith('pypy') for x in parts[-2:]), parts |
| 14 | |
| 15 | |
| 16 | if __name__ == "__main__": |
| 17 | unittest.main() |