Replace backticks with repr() or "%r"
From SF patch #852334.
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 3b108a1..3a85c76 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -426,7 +426,7 @@
def test_repr(self):
if self.repr is not None:
- self.assertEqual(`self.set`, self.repr)
+ self.assertEqual(repr(self.set), self.repr)
def test_length(self):
self.assertEqual(len(self.set), self.length)
@@ -1076,7 +1076,7 @@
def test_deep_copy(self):
dup = copy.deepcopy(self.set)
- ##print type(dup), `dup`
+ ##print type(dup), repr(dup)
dup_list = list(dup); dup_list.sort()
set_list = list(self.set); set_list.sort()
self.assertEqual(len(dup_list), len(set_list))