Debian Codegraph @

debian/patches/import-uuid6-locally.patch

raw
1 From: Colin Watson <[email protected]>
2 Date: Mon, 22 Dec 2025 17:06:57 +0000
3 Subject: Only import uuid6 in relevant tests
4
5 This can be reverted once uuid6 is packaged in Debian.
6
7 Forwarded: not-needed
8 Last-Update: 2025-11-22
9 ---
10 tests/test_hash.py | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13 diff --git a/tests/test_hash.py b/tests/test_hash.py
14 index 902cb14..41d1413 100755
15 --- a/tests/test_hash.py
16 +++ b/tests/test_hash.py
17 @@ -2,7 +2,6 @@
18 import re
19 import pytest
20 import pytz
21 -import uuid6
22 import logging
23 import datetime
24 import ipaddress
25 @@ -211,6 +210,7 @@ class TestDeepHash:
26
27 def test_uuid6_hash_positive(self):
28 """Positive test case: Same UUID objects should produce the same hash."""
29 + import uuid6
30 uuid_obj = uuid6.uuid7()
31 hash1 = DeepHash(uuid_obj)
32 hash2 = DeepHash(uuid_obj)
33 @@ -223,6 +223,7 @@ class TestDeepHash:
34
35 def test_uuid6_deepdiff_negative(self):
36 """Negative test case: DeepDiff should detect differences between sets containing different UUID objects."""
37 + import uuid6
38 dummy_id_1 = uuid6.uuid7()
39 dummy_id_2 = uuid6.uuid7()
40 set1 = {dummy_id_1}