diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-06-08 20:34:34 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-06-08 20:34:34 (GMT) |
commit | 4182cfd7dba40383ebf9e5a14b27de934827a674 (patch) | |
tree | fe666adcfa8da9db43809ac99a9f376b77d5e85e /Lib/test/test_os.py | |
parent | 2242fe84f998180e3019a15101b6b06d49d53d52 (diff) | |
download | cpython-4182cfd7dba40383ebf9e5a14b27de934827a674.zip cpython-4182cfd7dba40383ebf9e5a14b27de934827a674.tar.gz cpython-4182cfd7dba40383ebf9e5a14b27de934827a674.tar.bz2 |
test_devnull(): Use assertEqual() instead of an assert stmt.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index b05bffc..22cd112 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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(): |