Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37814271
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-pytest_optional

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: pytest_optional-0.0.3-alt-comply-with-pytest-3.7.2.patch
Скачать


From eb3bff8728e2ac681c954422ee8e33fcc5a83550 Mon Sep 17 00:00:00 2001
From: Stanislav Levin <slev@altlinux.org>
Date: Sun, 23 Dec 2018 23:29:54 +0300
Subject: [PATCH] Comply with pytest 3.7.2
pytest 3.7.2 changed behavior for fixture decorators.
One who wants to decorate a fixture should use an own decorator
after a fixture one.
---
 pytest-optional/pytest_optional/test_example1.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pytest-optional/pytest_optional/test_example1.py b/pytest-optional/pytest_optional/test_example1.py
index a07545a..be02a9d 100644
--- a/pytest-optional/pytest_optional/test_example1.py
+++ b/pytest-optional/pytest_optional/test_example1.py
@@ -3,8 +3,8 @@ import pytest
 from optional import fixture_optional
 
 
-@fixture_optional
 @pytest.fixture(params=[-1,0,1,2,3,4,5])
+@fixture_optional
 def number(request):
     return request.param
 
@@ -19,4 +19,4 @@ def test_sqrt(number):
     """
         py.test.exclude(number,-1)
     """
-    assert pow(number,0.5) <= number
\ No newline at end of file
+    assert pow(number,0.5) <= number
-- 
2.19.2
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin