[pypy-commit] pypy win64_gborg: test_chdir is fixed now for win32

ctismer noreply at buildbot.pypy.org
Tue Nov 8 20:53:01 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: win64_gborg
Changeset: r48974:82f5470affc1
Date: 2011-11-08 20:52 +0100
http://bitbucket.org/pypy/pypy/changeset/82f5470affc1/

Log:	test_chdir is fixed now for win32

diff --git a/pypy/rpython/module/test/test_ll_os.py b/pypy/rpython/module/test/test_ll_os.py
--- a/pypy/rpython/module/test/test_ll_os.py
+++ b/pypy/rpython/module/test/test_ll_os.py
@@ -81,7 +81,8 @@
         import ctypes
         buf = ctypes.create_string_buffer(1000)
         ctypes.windll.kernel32.GetEnvironmentVariableA('=%c:' % pwd[0], buf, 1000)
-        assert str(buf.value) == pwd
+        assert str(buf.value).lower() == pwd
+        # ctypes returns the drive letter in uppercase, os.getcwd does not
 
     pwd = os.getcwd()
     try:


More information about the pypy-commit mailing list