[pypy-commit] cffi default: Use os.pathsep instead of directly ':'
arigo
pypy.commits at gmail.com
Sun Jan 17 11:00:14 EST 2016
Author: Armin Rigo <arigo at tunes.org>
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:
More information about the pypy-commit
mailing list