mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Rip out all the u"..." literals and calls to unicode().
This commit is contained in:
parent
572dbf8f13
commit
ef87d6ed94
200 changed files with 18074 additions and 18074 deletions
|
@ -35,15 +35,15 @@ class ModuleTests(unittest.TestCase):
|
|||
|
||||
def test_unicode_docstring(self):
|
||||
# Unicode docstring
|
||||
foo = ModuleType("foo", u"foodoc\u1234")
|
||||
foo = ModuleType("foo", "foodoc\u1234")
|
||||
self.assertEqual(foo.__name__, "foo")
|
||||
self.assertEqual(foo.__doc__, u"foodoc\u1234")
|
||||
self.assertEqual(foo.__doc__, "foodoc\u1234")
|
||||
self.assertEqual(foo.__dict__,
|
||||
{"__name__": "foo", "__doc__": u"foodoc\u1234"})
|
||||
{"__name__": "foo", "__doc__": "foodoc\u1234"})
|
||||
|
||||
def test_reinit(self):
|
||||
# Reinitialization should not replace the __dict__
|
||||
foo = ModuleType("foo", u"foodoc\u1234")
|
||||
foo = ModuleType("foo", "foodoc\u1234")
|
||||
foo.bar = 42
|
||||
d = foo.__dict__
|
||||
foo.__init__("foo", "foodoc")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue