diff --git a/requirements-db.txt b/requirements-db.txt --- a/requirements-db.txt +++ b/requirements-db.txt @@ -1,2 +1,3 @@ # requirements for swh.core.db psycopg2 +typing-extensions diff --git a/requirements-test-db.txt b/requirements-test-db.txt --- a/requirements-test-db.txt +++ b/requirements-test-db.txt @@ -1,2 +1 @@ pytest-postgresql -typing-extensions diff --git a/swh/core/api/tests/test_serializers.py b/swh/core/api/tests/test_serializers.py --- a/swh/core/api/tests/test_serializers.py +++ b/swh/core/api/tests/test_serializers.py @@ -178,7 +178,7 @@ def test_encode_native_datetime(self): dt = datetime.datetime(2015, 1, 1, 12, 4, 42, 231455) - with self.assertRaises(ValueError, matches="naive datetime"): + with self.assertRaises(ValueError, match="naive datetime"): msgpack_dumps(dt) def test_decode_naive_datetime(self):