mirror of
https://github.com/python/cpython.git
synced 2025-07-21 10:15:46 +00:00
gh-111495: Remove test_capi test_rshift_print() (#123338)
The suggestion for "print >> value" was removed recently:
commit 9375b9ca3a
.
This commit is contained in:
parent
2f20f5a9bc
commit
a1ddaaef58
1 changed files with 0 additions and 15 deletions
|
@ -217,21 +217,6 @@ class CAPITest(unittest.TestCase):
|
||||||
self.assertRaises(TypeError, power, 4, 11, HasPow.with_val(NotImplemented))
|
self.assertRaises(TypeError, power, 4, 11, HasPow.with_val(NotImplemented))
|
||||||
self.assertRaises(TypeError, power, 4, 11, object())
|
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):
|
def test_long(self):
|
||||||
# Test PyNumber_Long()
|
# Test PyNumber_Long()
|
||||||
long = _testcapi.number_long
|
long = _testcapi.number_long
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue