diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2020-11-25 12:27:28 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2020-11-25 12:27:28 +0000 |
| commit | 02af9e65cb29ffcec13e4865ec98883406af5a4a (patch) | |
| tree | d1e0fac86c7ff71b76a9dba87e43fd92c83e065b /dev-python/setproctitle/files | |
| parent | 0e0206e0d64b11d459c4e462fce27542467ba3a0 (diff) | |
| download | baldeagleos-repo-02af9e65cb29ffcec13e4865ec98883406af5a4a.tar.gz baldeagleos-repo-02af9e65cb29ffcec13e4865ec98883406af5a4a.tar.xz baldeagleos-repo-02af9e65cb29ffcec13e4865ec98883406af5a4a.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/setproctitle/files')
| -rw-r--r-- | dev-python/setproctitle/files/setproctitle-1.2-pypy3.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/setproctitle/files/setproctitle-1.2-pypy3.patch b/dev-python/setproctitle/files/setproctitle-1.2-pypy3.patch new file mode 100644 index 000000000000..01d4b0e4dd53 --- /dev/null +++ b/dev-python/setproctitle/files/setproctitle-1.2-pypy3.patch @@ -0,0 +1,46 @@ +From b13b7254fa10b4ba461c03b0f1f03858a2368bdc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 25 Nov 2020 09:29:18 +0100 +Subject: [PATCH] Fix skipping embedded tests with pypy + +Fix skipping embedded tests by using the 'skipif' decorator. The tests +need to be skipped early, as otherwise they error out trying to +initialize pyconfig fixture. +--- + tests/setproctitle_test.py | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/tests/setproctitle_test.py b/tests/setproctitle_test.py +index 5d73733..7b679df 100644 +--- a/tests/setproctitle_test.py ++++ b/tests/setproctitle_test.py +@@ -340,12 +340,10 @@ print(os.popen("ps -x -o pid,command 2> /dev/null").read()) + + + @pytest.mark.embedded ++@pytest.mark.skipif(IS_PYPY, reason="skip test, pypy") + def test_embedded(pyrun, spt_directory): + """Check the module works with embedded Python. + """ +- if IS_PYPY: +- pytest.skip("skip test, pypy") +- + if not os.path.exists("/proc/%s/cmdline" % os.getpid()): + pytest.skip("known failure: '/proc/PID/cmdline' not available") + +@@ -371,11 +369,9 @@ print(os.popen("ps -x -o pid,command 2> /dev/null").read()) + + + @pytest.mark.embedded ++@pytest.mark.skipif(IS_PYPY, reason="skip test, pypy") + def test_embedded_many_args(pyrun, spt_directory): + """Check more complex cmdlines are handled in embedded env too.""" +- if IS_PYPY: +- pytest.skip("skip test, pypy") +- + if not os.path.exists("/proc/%s/cmdline" % os.getpid()): + pytest.skip("known failure: '/proc/PID/cmdline' not available") + +-- +2.29.2 + |
