Hi
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0
rootdir: /usr/src/RPM/BUILD/python3-module-envstack-1.0.2
configfile: pytest.ini
collected 255 items
tests/test_cmds.py ............................................... [ 18%]
tests/test_encrypt.py ....... [ 21%]
tests/test_env.py .......F.............................................. [ 42%]
............... [ 48%]
tests/test_node.py ...................... [ 56%]
tests/test_path.py ............ [ 61%]
tests/test_util.py ..................................................... [ 82%]
........................ [ 91%]
tests/test_wrapper.py ...s...............s. [100%]
=================================== FAILURES ===================================
_____________________________ TestEnvVar.test_vars _____________________________
self = <test_env.TestEnvVar testMethod=test_vars>
def test_vars(self):
v = EnvVar("$FOO:${BAR}/bin")
> self.assertEqual(v.vars(), ["FOO", "BAR"])
^^^^^^^^
tests/test_env.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.run_venv/lib64/python3/site-packages/envstack/env.py:251: in vars
matches = super(EnvVar, self).pattern.findall(str(self.template))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.14/string/__init__.py:60: in __get__
return cls._compile_pattern()
^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.14/string/__init__.py:101: in _compile_pattern
pat = cls.pattern = re.compile(pattern, cls.flags | re.VERBOSE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib64/python3.14/re/__init__.py:289: in compile
return _compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pattern = re.compile('\n \\$(?:\n (?P<escaped>\\$) | # Escape sequence of two delimiters\n (?P<named>(?a:[_a-z][_a-z0-9]*)) | # delimiter and a Python identifier\n , re.IGNORECASE|re.VERBOSE)
flags = 66
def _compile(pattern, flags):
# internal: compile pattern
if isinstance(flags, RegexFlag):
flags = flags.value
try:
return _cache2[type(pattern), pattern, flags]
except KeyError:
pass
key = (type(pattern), pattern, flags)
# Item in _cache should be moved to the end if found.
p = _cache.pop(key, None)
if p is None:
if isinstance(pattern, Pattern):
if flags:
> raise ValueError(
"cannot process flags argument with a compiled pattern")
E ValueError: cannot process flags argument with a compiled pattern
/usr/lib64/python3.14/re/__init__.py:345: ValueError
=========================== short test summary info ============================
FAILED tests/test_env.py::TestEnvVar::test_vars - ValueError: cannot process ...
=================== 1 failed, 252 passed, 2 skipped in 3.19s ===================
Hi