From 8d80c72468282e35fd5476b42c5c03595cd38e99 Mon Sep 17 00:00:00 2001 From: Stanislav Levin 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 --- 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 ec1fdec..61871c1 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.10.5