File: skip-failing-test.patch

package info (click to toggle)
python-parameterized 0.8.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 388 kB
  • sloc: python: 914; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 516 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
From: =?utf-8?b?T25kxZllaiBOb3bDvQ==?= <onovy@debian.org>
Date: Mon, 30 Aug 2021 13:45:04 +0200
Subject: Skip failing tests on Python 2

Forwarded: not-needed
---
 parameterized/test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/parameterized/test.py
+++ b/parameterized/test.py
@@ -373,7 +373,8 @@
 
 def tearDownModule():
     missing = sorted(list(missing_tests))
-    assert_equal(missing, [])
+    if not PY2:
+        assert_equal(missing, [])
 
 def test_old_style_classes():
     if PY3: