mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
@ -199,13 +199,13 @@ class ModuleTest(unittest.TestCase):
|
|||
class BytesAliasTest(unittest.TestCase):
|
||||
|
||||
def test_builtin(self):
|
||||
self.assert_(str is bytes)
|
||||
self.assertTrue(str is bytes)
|
||||
|
||||
def test_syntax(self):
|
||||
self.assertEqual(b"spam", "spam")
|
||||
self.assertEqual(br"egg\foo", "egg\\foo")
|
||||
self.assert_(type(b""), str)
|
||||
self.assert_(type(br""), str)
|
||||
self.assertTrue(type(b""), str)
|
||||
self.assertTrue(type(br""), str)
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(StringTest, ModuleTest, BytesAliasTest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue