Author: Pauli Virtanen <[email protected]>
Branch: py3.5-user-site-impl
Changeset: r94475:041d69a3aea1
Date: 2018-05-06 17:58 +0200
http://bitbucket.org/pypy/pypy/changeset/041d69a3aea1/

Log:    Add test for user-site dir

diff --git a/lib-python/3/test/test_sysconfig_pypy.py 
b/lib-python/3/test/test_sysconfig_pypy.py
new file mode 100644
--- /dev/null
+++ b/lib-python/3/test/test_sysconfig_pypy.py
@@ -0,0 +1,17 @@
+import os
+import sys
+import unittest
+import site
+
+
+class TestSysConfigPypy(unittest.TestCase):
+    def test_install_schemes(self):
+        # User-site etc. paths should have "pypy" and not "python"
+        # inside them.
+        if site.ENABLE_USER_SITE:
+            parts = site.USER_SITE.lower().split(os.path.sep)
+            assert any(x.startswith('pypy') for x in parts[-2:]), parts
+
+
+if __name__ == "__main__":
+    unittest.main()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to