diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-01 07:10:50 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-01 07:10:50 +0000 |
| commit | 706713a94f1df034ca3d007ff5919ca256311d8f (patch) | |
| tree | 6306ed2898fc8baa0a474b00975b5ebae1a3ab48 /dev-python/pytest-subprocess/files | |
| parent | 4ae305f4f8a7a8d004ff4470e38b93ee13c6540c (diff) | |
| download | baldeagleos-repo-706713a94f1df034ca3d007ff5919ca256311d8f.tar.gz baldeagleos-repo-706713a94f1df034ca3d007ff5919ca256311d8f.tar.xz baldeagleos-repo-706713a94f1df034ca3d007ff5919ca256311d8f.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-subprocess/files')
| -rw-r--r-- | dev-python/pytest-subprocess/files/pytest-subprocess-1.5.3-py314.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/dev-python/pytest-subprocess/files/pytest-subprocess-1.5.3-py314.patch b/dev-python/pytest-subprocess/files/pytest-subprocess-1.5.3-py314.patch deleted file mode 100644 index b6c1aa63bfee..000000000000 --- a/dev-python/pytest-subprocess/files/pytest-subprocess-1.5.3-py314.patch +++ /dev/null @@ -1,53 +0,0 @@ -From c9fbd11a1c4caea4b3fbc5114363a1c7fac4af38 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz> -Date: Wed, 21 May 2025 15:29:55 +0200 -Subject: [PATCH] Fix test_examples on Python 3.14 - -This is basically a followup of https://github.com/aklajnert/pytest-subprocess/pull/148 ---- - tests/test_examples.py | 28 ++++++++++++++++------------ - 1 file changed, 16 insertions(+), 12 deletions(-) - -diff --git a/tests/test_examples.py b/tests/test_examples.py -index 5a27604..df849f3 100644 ---- a/tests/test_examples.py -+++ b/tests/test_examples.py -@@ -1,3 +1,4 @@ -+import sys - from pathlib import Path - - import pytest -@@ -39,18 +40,21 @@ def test_documentation(testdir, rst_file): - " os.chdir(os.path.dirname(__file__))\n\n" - ) - -- event_loop_fixture = ( -- "\n\n" -- "@pytest.fixture(autouse=True)\n" -- "def event_loop(request):\n" -- " policy = asyncio.get_event_loop_policy()\n" -- ' if sys.platform == "win32":\n' -- " loop = asyncio.ProactorEventLoop()\n" -- " else:\n" -- " loop = policy.get_event_loop()\n" -- " yield loop\n" -- " loop.close()\n" -- ) -+ if sys.version_info < (3, 8): -+ event_loop_fixture = ( -+ "\n\n" -+ "@pytest.fixture(autouse=True)\n" -+ "def event_loop(request):\n" -+ " policy = asyncio.get_event_loop_policy()\n" -+ ' if sys.platform == "win32":\n' -+ " loop = asyncio.ProactorEventLoop()\n" -+ " else:\n" -+ " loop = policy.get_event_loop()\n" -+ " yield loop\n" -+ " loop.close()\n" -+ ) -+ else: -+ event_loop_fixture = "" - - code_blocks = "\n".join(get_code_blocks(ROOT_DIR / rst_file)) - testdir.makepyfile( |
