diff --git a/Lib/test/test_capi/test_number.py b/Lib/test/test_capi/test_number.py index 3c1f0f248c37cb..04f85d2395083a 100644 --- a/Lib/test/test_capi/test_number.py +++ b/Lib/test/test_capi/test_number.py @@ -217,21 +217,6 @@ class HasPow(WithDunder): self.assertRaises(TypeError, power, 4, 11, HasPow.with_val(NotImplemented)) self.assertRaises(TypeError, power, 4, 11, object()) - @cpython_only - def test_rshift_print(self): - # This tests correct syntax hint for py2 redirection (>>). - rshift = _testcapi.number_rshift - - with self.assertRaises(TypeError) as context: - rshift(print, 42) - self.assertIn('Did you mean "print(, ' - 'file=)"?', str(context.exception)) - with self.assertRaises(TypeError) as context: - rshift(max, sys.stderr) - self.assertNotIn('Did you mean ', str(context.exception)) - with self.assertRaises(TypeError) as context: - rshift(1, "spam") - def test_long(self): # Test PyNumber_Long() long = _testcapi.number_long