diff options
author | Sanyam Khurana <sanyam@sanyamkhurana.com> | 2017-08-18 12:18:14 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2017-08-18 12:18:14 (GMT) |
commit | a7c449b8c08933deabcf329fb74ed1336f6db34f (patch) | |
tree | 6cb21a528e8a04300e5ee0aa8a53865b047184c7 /Lib | |
parent | f0202bb349986ff264d06b15058dcde4062b7b7a (diff) | |
download | cpython-a7c449b8c08933deabcf329fb74ed1336f6db34f.zip cpython-a7c449b8c08933deabcf329fb74ed1336f6db34f.tar.gz cpython-a7c449b8c08933deabcf329fb74ed1336f6db34f.tar.bz2 |
bpo-30721: Add missing '?' to new error message (GH-3131)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_print.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_print.py b/Lib/test/test_print.py index 8099327..e6434fe 100644 --- a/Lib/test/test_print.py +++ b/Lib/test/test_print.py @@ -161,14 +161,14 @@ class TestPy2MigrationHint(unittest.TestCase): with self.assertRaises(TypeError) as context: print >> sys.stderr, "message" self.assertIn('Did you mean "print(<message>, ' - 'file=<output_stream>)', str(context.exception)) + 'file=<output_stream>)"?', str(context.exception)) # Test correct hint is produced in the case where RHS implements # __rrshift__ but returns NotImplemented with self.assertRaises(TypeError) as context: print >> 42 self.assertIn('Did you mean "print(<message>, ' - 'file=<output_stream>)', str(context.exception)) + 'file=<output_stream>)"?', str(context.exception)) # Test stream redirection hint is specific to print with self.assertRaises(TypeError) as context: |