[Python-checkins] python/dist/src/Lib/test test_builtin.py, 1.37, 1.38

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Tue Dec 7 22:17:50 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10641/test

Modified Files:
	test_builtin.py 
Log Message:
Whitespace normalization.


Index: test_builtin.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_builtin.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- test_builtin.py	3 Dec 2004 08:30:35 -0000	1.37
+++ test_builtin.py	7 Dec 2004 21:17:46 -0000	1.38
@@ -352,7 +352,7 @@
         if numruns:
             return
         numruns += 1
-        
+
         globals = {'a': 1, 'b': 2}
         locals = {'b': 200, 'c': 300}
 
@@ -862,12 +862,12 @@
             "max(1, 2, key=int, abc=int)",  # two many keywords
             "max(1, 2, key=1)",             # keyfunc is not callable
             ):
-                try:
-                    exec(stmt) in globals()
-                except TypeError:
-                    pass
-                else:
-                    self.fail(stmt)
+            try:
+                exec(stmt) in globals()
+            except TypeError:
+                pass
+            else:
+                self.fail(stmt)
 
         self.assertEqual(max((1,), key=neg), 1)     # one elem iterable
         self.assertEqual(max((1,2), key=neg), 1)    # two elem iterable
@@ -908,12 +908,12 @@
             "min(1, 2, key=int, abc=int)",  # two many keywords
             "min(1, 2, key=1)",             # keyfunc is not callable
             ):
-                try:
-                    exec(stmt) in globals()
-                except TypeError:
-                    pass
-                else:
-                    self.fail(stmt)
+            try:
+                exec(stmt) in globals()
+            except TypeError:
+                pass
+            else:
+                self.fail(stmt)
 
         self.assertEqual(min((1,), key=neg), 1)     # one elem iterable
         self.assertEqual(min((1,2), key=neg), 2)    # two elem iterable



More information about the Python-checkins mailing list