Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2608:5e4c30fb3a24
Date: 2016-01-17 17:00 +0100
http://bitbucket.org/cffi/cffi/changeset/5e4c30fb3a24/

Log:    Use os.pathsep instead of directly ':'

diff --git a/testing/embedding/test_basic.py b/testing/embedding/test_basic.py
--- a/testing/embedding/test_basic.py
+++ b/testing/embedding/test_basic.py
@@ -31,10 +31,10 @@
 
 def prefix_pythonpath():
     cffi_base = os.path.dirname(os.path.dirname(local_dir))
-    pythonpath = os.environ.get('PYTHONPATH', '').split(':')
+    pythonpath = os.environ.get('PYTHONPATH', '').split(os.pathsep)
     if cffi_base not in pythonpath:
         pythonpath.insert(0, cffi_base)
-    return ':'.join(pythonpath)
+    return os.pathsep.join(pythonpath)
 
 
 class EmbeddingTests:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to