Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37601104
en ru br
ALT Linux repos
S:2019.1.0-alt2

Group :: Development/Tools
RPM: python3-module-ffc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0001-Add-compatibility-against-Pytest-6.0.patch
Download


From 8d80c72468282e35fd5476b42c5c03595cd38e99 Mon Sep 17 00:00:00 2001
From: Stanislav Levin <slev@altlinux.org>
Date: Wed, 5 Aug 2020 14:03:48 +0300
Subject: [PATCH] Add compatibility against Pytest 6.0
Passing arguments to pytest.fixture() as positional arguments is deprecated
since Pytest 5.2.0:
https://docs.pytest.org/en/stable/changelog.html#pytest-5-2-0-2019-09-28
Fixes: https://bitbucket.org/fenics-project/ffc/issues/183/self-tests-fails-against-pytest-601
Signed-off-by: Stanislav Levin <slev@altlinux.org>
---
 test/uflacs/crosslanguage/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/uflacs/crosslanguage/conftest.py b/test/uflacs/crosslanguage/conftest.py
index ec1fdec7f..61871c148 100644
--- a/test/uflacs/crosslanguage/conftest.py
+++ b/test/uflacs/crosslanguage/conftest.py
@@ -231,7 +231,7 @@ class GTestContext:
         self.run()
 
 
-@pytest.fixture("session")
+@pytest.fixture(scope="session")
 def gtest():
     "create initial files for gtest generation"
     config = None
-- 
2.25.4
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin