]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Some more tests pass now. (Also test_compiler.py with -u all.)
authorGuido van Rossum <guido@python.org>
Fri, 9 Feb 2007 21:54:58 +0000 (21:54 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 Feb 2007 21:54:58 +0000 (21:54 +0000)
Lib/test/output/test_cProfile
Lib/test/test_deque.py
Lib/test/test_set.py

index f9483a3d9fe32f01b7f84b13dc9cebcdce317276..973f47ac37f665151d429334c63cd5c418fb49a9 100644 (file)
@@ -29,12 +29,12 @@ Function                                          called...
 <string>:1(<module>)                              ->       1    0.270    1.000  test_cProfile.py:30(testfunc)
 test_cProfile.py:103(subhelper)                   ->      16    0.016    0.016  test_cProfile.py:115(__getattr__)
                                                            8    0.000    0.000  {range}
-test_cProfile.py:115(__getattr__)                 ->
+test_cProfile.py:115(__getattr__)                 -> 
 test_cProfile.py:30(testfunc)                     ->       1    0.014    0.130  test_cProfile.py:40(factorial)
                                                            2    0.040    0.600  test_cProfile.py:60(helper)
 test_cProfile.py:40(factorial)                    ->    20/3    0.130    0.147  test_cProfile.py:40(factorial)
                                                           20    0.020    0.020  test_cProfile.py:53(mul)
-test_cProfile.py:53(mul)                          ->
+test_cProfile.py:53(mul)                          -> 
 test_cProfile.py:60(helper)                       ->       4    0.116    0.120  test_cProfile.py:78(helper1)
                                                            2    0.000    0.140  test_cProfile.py:89(helper2_indirect)
                                                            6    0.234    0.300  test_cProfile.py:93(helper2)
@@ -47,10 +47,10 @@ test_cProfile.py:93(helper2)                      ->       8    0.064    0.080
                                                            8    0.000    0.008  {hasattr}
 {exec}                                            ->       1    0.000    1.000  <string>:1(<module>)
 {hasattr}                                         ->      12    0.012    0.012  test_cProfile.py:115(__getattr__)
-{method 'append' of 'list' objects}               ->
-{method 'disable' of '_lsprof.Profiler' objects}  ->
-{range}                                           ->
-{sys.exc_info}                                    ->
+{method 'append' of 'list' objects}               -> 
+{method 'disable' of '_lsprof.Profiler' objects}  -> 
+{range}                                           -> 
+{sys.exc_info}                                    -> 
 
 
    Ordered by: standard name
@@ -71,11 +71,11 @@ test_cProfile.py:78(helper1)                      <-       4    0.116    0.120
 test_cProfile.py:89(helper2_indirect)             <-       2    0.000    0.140  test_cProfile.py:60(helper)
 test_cProfile.py:93(helper2)                      <-       6    0.234    0.300  test_cProfile.py:60(helper)
                                                            2    0.078    0.100  test_cProfile.py:89(helper2_indirect)
-{exec}                                            <-
+{exec}                                            <- 
 {hasattr}                                         <-       4    0.000    0.004  test_cProfile.py:78(helper1)
                                                            8    0.000    0.008  test_cProfile.py:93(helper2)
 {method 'append' of 'list' objects}               <-       4    0.000    0.000  test_cProfile.py:78(helper1)
-{method 'disable' of '_lsprof.Profiler' objects}  <-
+{method 'disable' of '_lsprof.Profiler' objects}  <- 
 {range}                                           <-       8    0.000    0.000  test_cProfile.py:103(subhelper)
 {sys.exc_info}                                    <-       4    0.000    0.000  test_cProfile.py:78(helper1)
 
index 9bb147278e8b7bd0349bad0c89d7ceb0826c9c52..28099045a611fe0dabc30d848768e6ff60019119 100644 (file)
@@ -245,7 +245,7 @@ class TestBasic(unittest.TestCase):
         d.append(d)
         try:
             fo = open(test_support.TESTFN, "wb")
-            print(d, end=' ', file=fo)
+            fo.write(str(d))
             fo.close()
             fo = open(test_support.TESTFN, "rb")
             self.assertEqual(fo.read(), repr(d))
index e1a98a34b9fae8583fc18722b1a2dd8b5bbc597e..2a791e490451ccae711aafc157bce5b4aeb00b97 100644 (file)
@@ -265,7 +265,7 @@ class TestJointOps(unittest.TestCase):
         w.value = s
         try:
             fo = open(test_support.TESTFN, "wb")
-            print >> fo, s,
+            fo.write(str(s))
             fo.close()
             fo = open(test_support.TESTFN, "rb")
             self.assertEqual(fo.read(), repr(s))
@@ -594,7 +594,7 @@ class TestBasicOps(unittest.TestCase):
     def test_print(self):
         try:
             fo = open(test_support.TESTFN, "wb")
-            print >> fo, self.set,
+            fo.write(str(self.set))
             fo.close()
             fo = open(test_support.TESTFN, "rb")
             self.assertEqual(fo.read(), repr(self.set))
@@ -1506,7 +1506,7 @@ def test_main(verbose=None):
             test_support.run_unittest(*test_classes)
             gc.collect()
             counts[i] = sys.gettotalrefcount()
-        print counts
+        print(counts)
 
 if __name__ == "__main__":
     test_main(verbose=True)