mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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.close()
|
||||
f = file(os.devnull, 'r')
|
||||
assert f.read() == ''
|
||||
self.assertEqual(f.read(), '')
|
||||
f.close()
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue