From 06f78358b190df01a28502431fe0d672c5230ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D1=80=D0=B0=D0=B3=D0=B0=D0=BD=20=D0=8B=D0=B0=D1=98?= =?UTF-8?q?=D0=B8=D1=9B?= Date: Sat, 27 Jul 2024 16:55:08 +0200 Subject: [PATCH] ~ upgrade to `pytest 6.2.5` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '''test-requirements.txt''' √ › pytest==6.2.5 » Issue: ``` bash (.venv) dragancajic@ubuntu:~/Devs/pytest-and-docker$ pytest TypeError: required field "lineno" missing from alias ``` » Solution: :checkered_flag: ✔️ Pytest issues >> TypeError: required field "lineno" missing from alias · pytest-dev/pytest · Discussion #9195 https://github.com/pytest-dev/pytest/discussions/9195 Error running pytest: "TypeError: required field "lineno" missing from alias" · Issue #171 · tokenspice/tokenspice https://github.com/tokenspice/tokenspice/issues/171 The fix is to force pytest >= 6.2.5 Details: pytest-dev/pytest#9195 --- setup.py | 4 ---- test-requirements.txt | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/setup.py b/setup.py index e133382..66bf353 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,3 @@ 'Topic :: Software Development :: Libraries :: Python Modules' ], ) - - - - diff --git a/test-requirements.txt b/test-requirements.txt index 99eafa3..4ae0c0a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,5 @@ coverage==4.5.2 -pytest==5.2.0 +pytest==6.2.5 pytest-cov==2.6.1 pytest-flakes==2.0.0 pytest-pep8