We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ad552d commit 0aa56e5Copy full SHA for 0aa56e5
tests/test.py
@@ -74,6 +74,7 @@ def testfile(filename):
74
75
76
class FitFileTestCase(unittest.TestCase):
77
+
78
def test_basic_file_with_one_record(self, endian='<'):
79
f = FitFile(generate_fitfile(endian=endian))
80
f.parse()
@@ -414,7 +415,11 @@ def test_mismatched_field_size(self):
414
415
with warnings.catch_warnings(record=True) as w:
416
417
assert w
- assert all("falling back to byte encoding" in str(x) for x in w)
418
+ assert all(
419
+ "falling back to byte encoding" in str(x)
420
+ for x in w
421
+ if x.category == UserWarning
422
+ )
423
self.assertEqual(len(f.messages), 11293)
424
425
def test_unterminated_file(self):
0 commit comments