mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
test_devnull(): Use assertEqual() instead of an assert stmt.
This commit is contained in:
parent
2242fe84f9
commit
4182cfd7db
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue