From 4b9c9510849c48984b165a348aea52dc8176a52e Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Sun, 23 Jun 2024 20:30:31 +0200 Subject: [PATCH] switch from "setup.py test" to "python -m unittest" (pytest has a weird 'I/O operation on closed file' bug though) --- .github/workflows/python-package.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 1d9afe9f..2ee74663 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools - pip install flake8 pytest + pip install flake8 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | diff --git a/Makefile b/Makefile index fe4a238c..7b433237 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ i: @(cd src/; python3 -i -c 'import you_get; print("You-Get %s\n>>> import you_get" % you_get.version.__version__)') test: - $(SETUP) test + (cd src; python -m unittest discover -s ../tests) clean: zenity --question