Some more tests pass now. (Also test_compiler.py with -u all.)
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 @@
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)