File: autopkg-skip-custom-exception.patch

package info (click to toggle)
python-parsl 2025.11.17%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,116 kB
  • sloc: python: 24,367; makefile: 352; sh: 252; ansic: 45
file content (28 lines) | stat: -rw-r--r-- 997 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: skip test_custom_exception during autopkgtest.
 Something unclear in autopkgtest context prevents this particular test
 to run properly.  The test in question passes perfectly during build
 context, so I guess it expects something that goes missing when not
 running from the source tree.  What is missing precisely is unclear.
Author: Étienne Mollier <emollier@debian.org>
Forwarded: not-needed
Last-Update: 2025-10-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- python-parsl.orig/parsl/tests/test_python_apps/test_exception.py
+++ python-parsl/parsl/tests/test_python_apps/test_exception.py
@@ -1,3 +1,4 @@
+import os
 import pytest
 
 from parsl.app.app import python_app
@@ -13,6 +14,10 @@
     raise CustomException('foobar')
 
 
+@pytest.mark.skipif(
+    os.getenv('AUTOPKGTEST_TMP') != None,
+    reason='fails to run in autopkgtest context'
+)
 def test_custom_exception():
     x = custom_exception()
     with pytest.raises(CustomException):