File: 0001-Try-to-circumvent-pytest-error.patch

package info (click to toggle)
python-petl 1.7.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,224 kB
  • sloc: python: 22,617; makefile: 109; xml: 9
file content (43 lines) | stat: -rw-r--r-- 1,209 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Boyuan Yang <byang@debian.org>
Date: Wed, 18 Dec 2024 20:47:43 -0500
Subject: Try to circumvent pytest error

---
 petl/__init__.py | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/petl/__init__.py b/petl/__init__.py
index 36ac634..b3c5bd6 100644
--- a/petl/__init__.py
+++ b/petl/__init__.py
@@ -1,15 +1,18 @@
 from __future__ import absolute_import, print_function, division
 
 
-from petl.version import version as __version__
-from petl import comparison
-from petl.comparison import Comparable
-from petl import util
-from petl.util import *
-from petl import io
-from petl.io import *
-from petl import transform
-from petl.transform import *
-from petl import config
-from petl import errors
-from petl.errors import *
+try:
+    from petl.version import version as __version__
+    from petl import comparison
+    from petl.comparison import Comparable
+    from petl import util
+    from petl.util import *
+    from petl import io
+    from petl.io import *
+    from petl import transform
+    from petl.transform import *
+    from petl import config
+    from petl import errors
+    from petl.errors import *
+except Exception:
+    pass