[Python-3000-checkins] r53705 - in python/branches/p3yk/Lib/test: output/test_cProfile test_deque.py test_set.py
guido.van.rossum
python-3000-checkins at python.org
Fri Feb 9 22:54:59 CET 2007
Author: guido.van.rossum
Date: Fri Feb 9 22:54:58 2007
New Revision: 53705
Modified:
python/branches/p3yk/Lib/test/output/test_cProfile
python/branches/p3yk/Lib/test/test_deque.py
python/branches/p3yk/Lib/test/test_set.py
Log:
Some more tests pass now. (Also test_compiler.py with -u all.)
Modified: python/branches/p3yk/Lib/test/output/test_cProfile
==============================================================================
--- python/branches/p3yk/Lib/test/output/test_cProfile (original)
+++ python/branches/p3yk/Lib/test/output/test_cProfile Fri Feb 9 22:54:58 2007
@@ -29,12 +29,12 @@
<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 @@
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: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)
Modified: python/branches/p3yk/Lib/test/test_deque.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_deque.py (original)
+++ python/branches/p3yk/Lib/test/test_deque.py Fri Feb 9 22:54:58 2007
@@ -245,7 +245,7 @@
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))
Modified: python/branches/p3yk/Lib/test/test_set.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_set.py (original)
+++ python/branches/p3yk/Lib/test/test_set.py Fri Feb 9 22:54:58 2007
@@ -265,7 +265,7 @@
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 @@
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 @@
test_support.run_unittest(*test_classes)
gc.collect()
counts[i] = sys.gettotalrefcount()
- print counts
+ print(counts)
if __name__ == "__main__":
test_main(verbose=True)
More information about the Python-3000-checkins
mailing list