mirror of
https://github.com/python/cpython
synced 2024-09-06 06:13:35 +00:00
test_devnull(): Use assertEqual() instead of an assert stmt.
This commit is contained in:
parent
2242fe84f9
commit
4182cfd7db
|
@ -340,7 +340,7 @@ def test_devnull(self):
|
|||
f.write('hello')
|
||||
f.close()
|
||||
f = file(os.devnull, 'r')
|
||||
assert f.read() == ''
|
||||
self.assertEqual(f.read(), '')
|
||||
f.close()
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Reference in a new issue