Skip to content

Commit a1ddaae

Browse files
authored
gh-111495: Remove test_capi test_rshift_print() (#123338)
The suggestion for "print >> value" was removed recently: commit 9375b9c.
1 parent 2f20f5a commit a1ddaae

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Lib/test/test_capi/test_number.py

-15
Original file line numberDiff line numberDiff line change
@@ -217,21 +217,6 @@ class HasPow(WithDunder):
217217
self.assertRaises(TypeError, power, 4, 11, HasPow.with_val(NotImplemented))
218218
self.assertRaises(TypeError, power, 4, 11, object())
219219

220-
@cpython_only
221-
def test_rshift_print(self):
222-
# This tests correct syntax hint for py2 redirection (>>).
223-
rshift = _testcapi.number_rshift
224-
225-
with self.assertRaises(TypeError) as context:
226-
rshift(print, 42)
227-
self.assertIn('Did you mean "print(<message>, '
228-
'file=<output_stream>)"?', str(context.exception))
229-
with self.assertRaises(TypeError) as context:
230-
rshift(max, sys.stderr)
231-
self.assertNotIn('Did you mean ', str(context.exception))
232-
with self.assertRaises(TypeError) as context:
233-
rshift(1, "spam")
234-
235220
def test_long(self):
236221
# Test PyNumber_Long()
237222
long = _testcapi.number_long

0 commit comments

Comments
 (0)