Fixing CI/CD failing

This commit is contained in:
Miroslav Štampar 2026-06-15 09:59:01 +02:00
parent 3816df1241
commit 948d01d57a
3 changed files with 6 additions and 3 deletions

View file

@ -41,7 +41,10 @@ jobs:
run: python -c "import sqlmap; import sqlmapapi"
- name: Unit tests
run: python -m unittest discover -s tests -p "test_*.py"
# -B: do not write .pyc files. On Python 2 / PyPy a cached .pyc makes a module's __file__
# point at the .pyc, which would make the later --smoke getFileType(__file__) doctest see
# 'binary' instead of 'text'. Keeping this step byte-compile-free leaves --smoke clean.
run: python -B -m unittest discover -s tests -p "test_*.py"
- name: Smoke test
run: python sqlmap.py --smoke