summaryrefslogtreecommitdiff
path: root/Lib/test/test_string.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-30 22:57:08 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-30 22:57:08 +0000
commit5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e (patch)
tree41f38aca16748628d53906337f06fdf087f52314 /Lib/test/test_string.py
parentbe96cf608fa656d7e53144cf85082ed5661e8c13 (diff)
downloadcpython-git-5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e.tar.gz
convert usage of fail* to assert*
Diffstat (limited to 'Lib/test/test_string.py')
-rw-r--r--Lib/test/test_string.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py
index 20cff0a8fb..35ab117df4 100644
--- a/Lib/test/test_string.py
+++ b/Lib/test/test_string.py
@@ -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)