Commit a5031aa6 authored by Tim Peters's avatar Tim Peters

test_devnull(): Use assertEqual() instead of an assert stmt.

parent 3ae2ea6d
...@@ -340,7 +340,7 @@ class DevNullTests (unittest.TestCase): ...@@ -340,7 +340,7 @@ class DevNullTests (unittest.TestCase):
f.write('hello') f.write('hello')
f.close() f.close()
f = file(os.devnull, 'r') f = file(os.devnull, 'r')
assert f.read() == '' self.assertEqual(f.read(), '')
f.close() f.close()
def test_main(): def test_main():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment