summaryrefslogtreecommitdiffhomepage
path: root/tests/test_file.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-02 20:18:18 -0700
committerScott Maxwell <scott@codecobblers.com>2013-11-02 20:19:04 -0700
commit7444a999931cddc1e61bb35270468aa45da2687e (patch)
tree1ac60cc2d3a949285e3a4917c05c19a6d03c775d /tests/test_file.py
parent45e65b6e1eb47944a26e4349d41998844c155df5 (diff)
Fix some deprecation and resource warnings
Diffstat (limited to 'tests/test_file.py')
-rwxr-xr-xtests/test_file.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_file.py b/tests/test_file.py
index 0430040c..33a49130 100755
--- a/tests/test_file.py
+++ b/tests/test_file.py
@@ -54,7 +54,7 @@ class BufferedFileTest (unittest.TestCase):
f = LoopbackFile('r')
try:
f.write('hi')
- self.assert_(False, 'no exception on write to read-only file')
+ self.assertTrue(False, 'no exception on write to read-only file')
except:
pass
f.close()
@@ -62,7 +62,7 @@ class BufferedFileTest (unittest.TestCase):
f = LoopbackFile('w')
try:
f.read(1)
- self.assert_(False, 'no exception to read from write-only file')
+ self.assertTrue(False, 'no exception to read from write-only file')
except:
pass
f.close()
@@ -81,12 +81,12 @@ class BufferedFileTest (unittest.TestCase):
f.close()
try:
f.readline()
- self.assert_(False, 'no exception on readline of closed file')
+ self.assertTrue(False, 'no exception on readline of closed file')
except IOError:
pass
- self.assert_(linefeed_byte in f.newlines)
- self.assert_(crlf in f.newlines)
- self.assert_(cr_byte not in f.newlines)
+ self.assertTrue(linefeed_byte in f.newlines)
+ self.assertTrue(crlf in f.newlines)
+ self.assertTrue(cr_byte not in f.newlines)
def test_3_lf(self):
"""