diff options
author | Théo de la Hogue | 2024-02-29 16:12:17 +0100 |
---|---|---|
committer | Théo de la Hogue | 2024-02-29 16:12:17 +0100 |
commit | e18530884d302331b3a7cabd6f7e0d2d1ef155ca (patch) | |
tree | cb98c432870fa5391d3940cbc41f234362c1e755 | |
parent | e82fd7d761beed64b85c1b9da83dd9c0e81d26de (diff) | |
download | argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.zip argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.tar.gz argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.tar.bz2 argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.tar.xz |
Catching ValueError instead of AssertionError.
-rw-r--r-- | src/argaze.test/DataFeatures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze.test/DataFeatures.py b/src/argaze.test/DataFeatures.py index 9543915..c64ad4c 100644 --- a/src/argaze.test/DataFeatures.py +++ b/src/argaze.test/DataFeatures.py @@ -83,7 +83,7 @@ class TestTimestampedObjectsListClass(unittest.TestCase): self.assertEqual(DataFeatures.TimestampedObjectsList(BasicDataClass), []) # Check that TimestampedObjectsList creation fails when data are not timestamped - with self.assertRaises(AssertionError): + with self.assertRaises(ValueError): data_list = [BasicDataClass((0, 0))] DataFeatures.TimestampedObjectsList(BasicDataClass, data_list) |