aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test
diff options
context:
space:
mode:
authorThéo de la Hogue2024-02-29 16:12:17 +0100
committerThéo de la Hogue2024-02-29 16:12:17 +0100
commite18530884d302331b3a7cabd6f7e0d2d1ef155ca (patch)
treecb98c432870fa5391d3940cbc41f234362c1e755 /src/argaze.test
parente82fd7d761beed64b85c1b9da83dd9c0e81d26de (diff)
downloadargaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.zip
argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.tar.gz
argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.tar.bz2
argaze-e18530884d302331b3a7cabd6f7e0d2d1ef155ca.tar.xz
Catching ValueError instead of AssertionError.
Diffstat (limited to 'src/argaze.test')
-rw-r--r--src/argaze.test/DataFeatures.py2
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)