commit:     07d255c5da126719c4131ecdc4f9a2e21d7385ff
Author:     Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Tue Nov 25 09:44:18 2025 +0000
Commit:     Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Thu Nov 27 16:14:04 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=07d255c5

chore: use py3k re.errors, not old sre_constants

Signed-off-by: Brian Harring <ferringb <AT> gmail.com>

 tests/test_demandload.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test_demandload.py b/tests/test_demandload.py
index 843cf80..0ef6d9a 100644
--- a/tests/test_demandload.py
+++ b/tests/test_demandload.py
@@ -1,6 +1,7 @@
-import sre_constants
+import re
 
 import pytest
+
 from snakeoil import demandload
 
 # few notes:
@@ -123,5 +124,5 @@ class TestDemandCompileRegexp:
         assert list(scope.keys()) == ["foo"]
         # should blow up on accessing an attribute.
         obj = scope["foo"]
-        with pytest.raises(sre_constants.error):
+        with pytest.raises(re.error):
             getattr(obj, "pattern")

Reply via email to