File: Disable-mem-tests-on-GNU-Hurd.patch

package info (click to toggle)
python-atom 0.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: cpp: 9,040; python: 6,249; makefile: 123
file content (19 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Subject: Disable mem tests on Debian GNU/Hurd
Author: Alexander Sulfrian <alexander@sulfrian.net>
Forwarded: not-needed

This memory tests are flaky on GNU Hurd. Possible the RSS implementation of
Hurd is different from Linux and the RSS value is not stictly stable.

Index: python-atom/tests/test_mem.py
===================================================================
--- python-atom.orig/tests/test_mem.py
+++ python-atom/tests/test_mem.py
@@ -86,6 +86,7 @@ def atomreftest(cls):
     "CI" in os.environ and sys.platform.startswith("darwin"),
     reason="Flaky on MacOS CI runners",
 )
+@pytest.mark.skipif(sys.platform == "gnu0", reason="Flaky on Debian GNU/Hurd")
 @pytest.mark.skipif(PSUTIL_UNAVAILABLE, reason="psutil is not installed")
 @pytest.mark.parametrize("label", MEM_TESTS.keys())
 def test_mem_usage(label):