File: blacklist-test-on-armhf.patch

package info (click to toggle)
python-greenlet 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,100 kB
  • sloc: cpp: 5,195; python: 3,333; ansic: 1,138; makefile: 145; asm: 120; sh: 73
file content (28 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Blacklist test on armhf
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1121889
Forwarded: no
Last-Update: 2025-12-05

Index: python-greenlet/src/greenlet/tests/test_leaks.py
===================================================================
--- python-greenlet.orig/src/greenlet/tests/test_leaks.py
+++ python-greenlet/src/greenlet/tests/test_leaks.py
@@ -4,7 +4,9 @@ Testing scenarios that may have leaked.
 """
 from __future__ import print_function, absolute_import, division
 
+import os
 import sys
+import unittest
 import gc
 
 import time
@@ -447,6 +449,7 @@ class TestLeaks(TestCase):
         uss_after = self.get_process_uss()
         self.assertLessEqual(uss_after, uss_before, "after attempts %d" % (count,))
 
+    @unittest.skipIf(os.environ.get("SKIP_ARMHF_TESTS") == "1", "Skipping flaky test on armhf")
     @ignores_leakcheck
     # Because we're just trying to track raw memory, not objects, and running
     # the leakcheck makes an already slow test slower.