You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(base) PS C:\Users\Win10x64\Projects\garak> python -m pytest .\tests\
================================================= test session starts =================================================
platform win32 -- Python 3.12.2, pytest-8.1.1, pluggy-1.5.0
rootdir: C:\Users\Win10x64\Projects\garak
configfile: pyproject.toml
plugins: anyio-4.3.0
collected 260 items / 3 errors
======================================================= ERRORS ========================================================
_________________________________ ERROR collecting tests/plugins/test_plugin_load.py __________________________________
tests\plugins\test_plugin_load.py:16: in <module>
classname for (classname, active) in _plugins.enumerate_plugins("detectors")
garak\_plugins.py:65: in enumerate_plugins
mod = importlib.import_module(f"garak.{category}.{module_name}")
..\..\miniconda3\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:935: in _load_unlocked
???
<frozen importlib._bootstrap_external>:995: in exec_module
???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
???
garak\detectors\riskywords.py:15: in <module>
for row in reader:
..\..\miniconda3\Lib\csv.py:115: in __next__
self.fieldnames
..\..\miniconda3\Lib\csv.py:102: in fieldnames
self._fieldnames = next(self.reader)
..\..\miniconda3\Lib\encodings\cp1252.py:23: in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7469: character maps to <undefined>
_________________________________ ERROR collecting tests/probes/test_probe_format.py __________________________________
tests\probes\test_probe_format.py:9: in <module>
for (classname, active) in _plugins.enumerate_plugins(
garak\_plugins.py:65: in enumerate_plugins
mod = importlib.import_module(f"garak.{category}.{module_name}")
..\..\miniconda3\Lib\importlib\__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:935: in _load_unlocked
???
<frozen importlib._bootstrap_external>:995: in exec_module
???
<frozen importlib._bootstrap>:488: in _call_with_frames_removed
???
garak\detectors\riskywords.py:15: in <module>
for row in reader:
..\..\miniconda3\Lib\csv.py:115: in __next__
self.fieldnames
..\..\miniconda3\Lib\csv.py:102: in fieldnames
self._fieldnames = next(self.reader)
..\..\miniconda3\Lib\encodings\cp1252.py:23: in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7469: character maps to <undefined>
_________________________________________ ERROR collecting tests/test_docs.py _________________________________________
tests\test_docs.py:10: in <module>
str(i).split("/")[2].replace(".py", "")
E IndexError: list index out of range
=============================================== short test summary info ===============================================
ERROR tests/plugins/test_plugin_load.py - UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7469: character maps to <undefined>
ERROR tests/probes/test_probe_format.py - UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7469: character maps to <undefined>
ERROR tests/test_docs.py - IndexError: list index out of range
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================= 3 errors in 18.25s ==================================================
The text was updated successfully, but these errors were encountered:
Test execution fails in Windows:
Testing Env:
ecoji
install mitigation appliedThe text was updated successfully, but these errors were encountered: