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/test_set.py | |
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/test_set.py')
-rw-r--r-- | Lib/test/test_set.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |