change Py3k backquote warning to a SyntaxWarning and add a test
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index 664df44..617d996 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -10,6 +10,12 @@
class TestPy3KWarnings(unittest.TestCase):
+ def test_backquote(self):
+ expected = 'backquote not supported in 3.x; use repr()'
+ with catch_warning() as w:
+ exec "`2`" in {}
+ self.assertWarning(None, w, expected)
+
def test_type_inequality_comparisons(self):
expected = 'type inequality comparisons not supported in 3.x'
with catch_warning() as w: