Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r98629:c14832883def
Date: 2020-01-31 12:11 +0200
http://bitbucket.org/pypy/pypy/changeset/c14832883def/

Log:    fix failing win32 test

diff --git a/pypy/module/posix/test/test_posix2.py 
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -615,10 +615,10 @@
         def test__getfullpathname(self):
             # nt specific
             posix = self.posix
-            sysdrv = posix.getenv("SystemDrive", "C:")
+            sysdrv = posix.environ.get("SystemDrive", "C:")
             # just see if it does anything
             path = sysdrv + 'hubber'
-            assert posix.sep in posix._getfullpathname(path)
+            assert '\\' in posix._getfullpathname(path)
 
     def test_utime(self):
         os = self.posix
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to