Control: tags -1 patch Dear Maintainer,
The attached patch fixes the autopkgtest in Ubuntu. Please consider applying it. Thanks, -- Simon Quigley tsimo...@ubuntu.com tsimonq2 on freenode and OFTC 5C7A BEA2 0F86 3045 9CC8 C8B5 E27F 2CF8 458C 2FA4
diff -Nru doit-0.31.1/debian/patches/change-pytest-fixture-syntax.patch doit-0.31.1/debian/patches/change-pytest-fixture-syntax.patch --- doit-0.31.1/debian/patches/change-pytest-fixture-syntax.patch 1970-01-01 00:00:00.000000000 +0000 +++ doit-0.31.1/debian/patches/change-pytest-fixture-syntax.patch 2018-08-28 04:47:23.000000000 +0000 @@ -0,0 +1,14 @@ +--- a/tests/test_dependency.py ++++ b/tests/test_dependency.py +@@ -66,10 +66,9 @@ def test_sqlite_import(): + # test parametrization, execute tests for all DB backends. + # create a separate fixture to be used only by this module + # because only here it is required to test with all backends +-@pytest.fixture ++@pytest.fixture(params=[JsonDB, DbmDB, SqliteDB]) + def pdep_manager(request): + return dep_manager(request) +-pytest.fixture(params=[JsonDB, DbmDB, SqliteDB])(pdep_manager) + + # FIXME there was major refactor breaking classes from dependency, + # unit-tests could be more specific to base classes. diff -Nru doit-0.31.1/debian/patches/fixTestFixtures.diff doit-0.31.1/debian/patches/fixTestFixtures.diff --- doit-0.31.1/debian/patches/fixTestFixtures.diff 2018-07-17 12:23:06.000000000 +0000 +++ doit-0.31.1/debian/patches/fixTestFixtures.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,10 +0,0 @@ ---- a/tests/test_dependency.py -+++ b/tests/test_dependency.py -@@ -66,7 +66,6 @@ - # test parametrization, execute tests for all DB backends. - # create a separate fixture to be used only by this module - # because only here it is required to test with all backends --@pytest.fixture - def pdep_manager(request): - return dep_manager(request) - pytest.fixture(params=[JsonDB, DbmDB, SqliteDB])(pdep_manager) diff -Nru doit-0.31.1/debian/patches/series doit-0.31.1/debian/patches/series --- doit-0.31.1/debian/patches/series 2018-07-17 12:23:06.000000000 +0000 +++ doit-0.31.1/debian/patches/series 2018-08-28 04:46:44.000000000 +0000 @@ -1 +1 @@ -fixTestFixtures.diff +change-pytest-fixture-syntax.patch
signature.asc
Description: OpenPGP digital signature