diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-09-24 01:40:47 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-09-24 01:40:47 +0000 |
| commit | bdc42437e49a420c12cec64ea4d292e9d5621776 (patch) | |
| tree | 729d265b9b8bb2f1cefa2cbd018fc230d2a296c2 /dev-python/pytest-ordering | |
| parent | 8a9c09bbf26b3256b18708e266223e16f47b4eea (diff) | |
| download | baldeagleos-repo-bdc42437e49a420c12cec64ea4d292e9d5621776.tar.gz baldeagleos-repo-bdc42437e49a420c12cec64ea4d292e9d5621776.tar.xz baldeagleos-repo-bdc42437e49a420c12cec64ea4d292e9d5621776.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-ordering')
| -rw-r--r-- | dev-python/pytest-ordering/files/pytest-ordering-0.6-fix-pytest-6.patch | 21 | ||||
| -rw-r--r-- | dev-python/pytest-ordering/pytest-ordering-0.6.ebuild | 6 |
2 files changed, 26 insertions, 1 deletions
diff --git a/dev-python/pytest-ordering/files/pytest-ordering-0.6-fix-pytest-6.patch b/dev-python/pytest-ordering/files/pytest-ordering-0.6-fix-pytest-6.patch new file mode 100644 index 000000000000..3a3ea15f4b8e --- /dev/null +++ b/dev-python/pytest-ordering/files/pytest-ordering-0.6-fix-pytest-6.patch @@ -0,0 +1,21 @@ +From 9bfb05700386254afabb38f762e0ea860b567209 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> +Date: Tue, 26 Jan 2021 20:42:14 +0100 +Subject: [PATCH] Don't use accidental pytest API, fix tests for pytest 6.2+ + +https://github.com/ftobia/pytest-ordering/pull/76 + +--- a/tests/test_ordering.py ++++ b/tests/test_ordering.py +@@ -12,9 +12,9 @@ def item_names_for(testdir): + def _item_names_for(tests_content): + # some strange code to extract sorted items + items = testdir.getitems(tests_content) +- hook = testdir.config.hook ++ hook = items[0].config.hook + hook.pytest_collection_modifyitems(session=items[0].session, +- config=testdir.config, items=items) ++ config=items[0].config, items=items) + return [item.name for item in items] + + return _item_names_for diff --git a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild index 768c96d086eb..dbc4f701f027 100644 --- a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild +++ b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild @@ -18,7 +18,11 @@ LICENSE="MIT" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 sparc x86" -RDEPEND="<dev-python/pytest-6[${PYTHON_USEDEP}]" +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}/${P}-fix-pytest-6.patch" +) distutils_enable_tests --install pytest distutils_enable_sphinx docs/source |
