FIX: sndhdr test suggestion

This commit is contained in:
david awad 2019-05-01 18:27:57 -04:00
parent a9e0513d03
commit 59a8fe3a3c
No known key found for this signature in database
GPG Key ID: 76BC41AA096C7477
1 changed files with 3 additions and 3 deletions

View File

@ -33,15 +33,15 @@ class TestFormats(unittest.TestCase):
filename = findfile(filename, subdir="sndhdrdata")
what = sndhdr.what(filename)
self.assertEqual(what, None)
self.assertIsNone(what)
whathdr = sndhdr.whathdr(filename)
self.assertEqual(whathdr, None)
self.assertIsNone(whathdr)
for tf in sndhdr.tests:
with open(filename, 'rb') as f:
h = f.read(512)
self.assertEqual(tf(h, f), None)
self.assertIsNone(tf(h, f))
def test_pickleable(self):
filename = findfile('sndhdr.aifc', subdir="sndhdrdata")