diff --git a/tests/test.py b/tests/test.py index 886f21f..91ed1af 100755 --- a/tests/test.py +++ b/tests/test.py @@ -74,6 +74,7 @@ def testfile(filename): class FitFileTestCase(unittest.TestCase): + def test_basic_file_with_one_record(self, endian='<'): f = FitFile(generate_fitfile(endian=endian)) f.parse() @@ -411,7 +412,7 @@ def test_speed(self): def test_mismatched_field_size(self): f = FitFile(testfile('coros-pace-2-cycling-misaligned-fields.fit')) - with warnings.catch_warnings(record=True) as w: + with warnings.catch_warnings(record=True, action="ignore", category=DeprecationWarning) as w: f.parse() assert w assert all("falling back to byte encoding" in str(x) for x in w)