[Python-checkins] r66445 - sandbox/trunk/2to3/lib2to3/tests/test_fixers.py

benjamin.peterson python-checkins at python.org
Sat Sep 13 17:50:00 CEST 2008


Author: benjamin.peterson
Date: Sat Sep 13 17:50:00 2008
New Revision: 66445

Log:
add a few more tests concerning int literals and weird spacing

Modified:
   sandbox/trunk/2to3/lib2to3/tests/test_fixers.py

Modified: sandbox/trunk/2to3/lib2to3/tests/test_fixers.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/test_fixers.py	(original)
+++ sandbox/trunk/2to3/lib2to3/tests/test_fixers.py	Sat Sep 13 17:50:00 2008
@@ -2387,6 +2387,15 @@
         a = """b = 0x12"""
         self.check(b, a)
 
+    def test_comments_and_spacing(self):
+        b = """b =   0x12L"""
+        a = """b =   0x12"""
+        self.check(b, a)
+
+        b = """b = 0755 # spam"""
+        a = """b = 0o755 # spam"""
+        self.check(b, a)
+
     def test_unchanged_int(self):
         s = """5"""
         self.unchanged(s)


More information about the Python-checkins mailing list