mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix test: u prefixes are gone now. Test 'a' and b'a' instead.
This commit is contained in:
parent
d2034310d6
commit
4e618b7518
1 changed files with 1 additions and 2 deletions
|
@ -43,9 +43,8 @@ class UnaryOpTestCase(unittest.TestCase):
|
|||
|
||||
def test_bad_types(self):
|
||||
for op in '+', '-', '~':
|
||||
self.assertRaises(TypeError, eval, op + "b'a'")
|
||||
self.assertRaises(TypeError, eval, op + "'a'")
|
||||
if have_unicode:
|
||||
self.assertRaises(TypeError, eval, op + "u'a'")
|
||||
|
||||
self.assertRaises(TypeError, eval, "~2j")
|
||||
self.assertRaises(TypeError, eval, "~2.0")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue