diff options
author | Guido van Rossum <guido@python.org> | 2007-02-09 21:54:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-09 21:54:58 (GMT) |
commit | d8c19672a77b11b0ea0be163e08485771bb69550 (patch) | |
tree | 00789a8dbd6ee86c3239ec55aeb888391db105e1 /Lib/test | |
parent | 88fc6646d1b97cb3ba6188808e7c016884d44a73 (diff) | |
download | cpython-d8c19672a77b11b0ea0be163e08485771bb69550.zip cpython-d8c19672a77b11b0ea0be163e08485771bb69550.tar.gz cpython-d8c19672a77b11b0ea0be163e08485771bb69550.tar.bz2 |
Some more tests pass now. (Also test_compiler.py with -u all.)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_cProfile | 16 | ||||
-rw-r--r-- | Lib/test/test_deque.py | 2 | ||||
-rw-r--r-- | Lib/test/test_set.py | 6 |
3 files changed, 12 insertions, 12 deletions
diff --git a/Lib/test/output/test_cProfile b/Lib/test/output/test_cProfile index f9483a3..973f47a 100644 --- a/Lib/test/output/test_cProfile +++ b/Lib/test/output/test_cProfile @@ -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) diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py index 9bb1472..2809904 100644 --- a/Lib/test/test_deque.py +++ b/Lib/test/test_deque.py @@ -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)) diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index e1a98a3..2a791e4 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -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) |