From: Colin Watson Date: Mon, 22 Dec 2025 17:06:57 +0000 Subject: Only import uuid6 in relevant tests This can be reverted once uuid6 is packaged in Debian. Forwarded: not-needed Last-Update: 2025-11-22 --- tests/test_hash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_hash.py b/tests/test_hash.py index 902cb14..41d1413 100755 --- a/tests/test_hash.py +++ b/tests/test_hash.py @@ -2,7 +2,6 @@ import re import pytest import pytz -import uuid6 import logging import datetime import ipaddress @@ -211,6 +210,7 @@ class TestDeepHash: def test_uuid6_hash_positive(self): """Positive test case: Same UUID objects should produce the same hash.""" + import uuid6 uuid_obj = uuid6.uuid7() hash1 = DeepHash(uuid_obj) hash2 = DeepHash(uuid_obj) @@ -223,6 +223,7 @@ class TestDeepHash: def test_uuid6_deepdiff_negative(self): """Negative test case: DeepDiff should detect differences between sets containing different UUID objects.""" + import uuid6 dummy_id_1 = uuid6.uuid7() dummy_id_2 = uuid6.uuid7() set1 = {dummy_id_1}