From 4182cfd7dba40383ebf9e5a14b27de934827a674 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 8 Jun 2004 20:34:34 +0000 Subject: test_devnull(): Use assertEqual() instead of an assert stmt. --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): -- cgit v0.12