[Python-3000-checkins] r58874 - python/branches/py3k-pep3137/Lib/test/test_dumbdbm.py

christian.heimes python-3000-checkins at python.org
Tue Nov 6 03:00:53 CET 2007


Author: christian.heimes
Date: Tue Nov  6 03:00:52 2007
New Revision: 58874

Modified:
   python/branches/py3k-pep3137/Lib/test/test_dumbdbm.py
Log:
Fixed a comparsion between bytes and str in dumbdbm tests

Modified: python/branches/py3k-pep3137/Lib/test/test_dumbdbm.py
==============================================================================
--- python/branches/py3k-pep3137/Lib/test/test_dumbdbm.py	(original)
+++ python/branches/py3k-pep3137/Lib/test/test_dumbdbm.py	Tue Nov  6 03:00:52 2007
@@ -115,7 +115,7 @@
 
         # Mangle the file by changing the line separator to Windows or Unix
         data = io.open(_fname + '.dir', 'rb').read()
-        if os.linesep == b'\n':
+        if os.linesep == '\n':
             data = data.replace(b'\n', b'\r\n')
         else:
             data = data.replace(b'\r\n', b'\n')


More information about the Python-3000-checkins mailing list