diff options
author | Victor Stinner <vstinner@python.org> | 2024-08-26 14:39:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 14:39:32 (GMT) |
commit | a1ddaaef58e21551399ee3d30d592cd336baec4c (patch) | |
tree | d3cffd42ae341e11e4b0d84eeb62e7ae6991bbd7 /Lib/test/test_capi | |
parent | 2f20f5a9bc7dafdb3c2ae723da90eca1727a95f7 (diff) | |
download | cpython-a1ddaaef58e21551399ee3d30d592cd336baec4c.zip cpython-a1ddaaef58e21551399ee3d30d592cd336baec4c.tar.gz cpython-a1ddaaef58e21551399ee3d30d592cd336baec4c.tar.bz2 |
gh-111495: Remove test_capi test_rshift_print() (#123338)
The suggestion for "print >> value" was removed recently:
commit 9375b9ca3a4998678ba74ff5c77ed540a4dcf887.
Diffstat (limited to 'Lib/test/test_capi')
-rw-r--r-- | Lib/test/test_capi/test_number.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Lib/test/test_capi/test_number.py b/Lib/test/test_capi/test_number.py index 3c1f0f2..04f85d2 100644 --- a/Lib/test/test_capi/test_number.py +++ b/Lib/test/test_capi/test_number.py @@ -217,21 +217,6 @@ class CAPITest(unittest.TestCase): 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(<message>, ' - 'file=<output_stream>)"?', 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 |