File: no-test-skipping.diff

package info (click to toggle)
python-docutils 0.13.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,728 kB
  • ctags: 7,259
  • sloc: python: 43,776; lisp: 13,142; xml: 1,644; sh: 164; makefile: 151
file content (27 lines) | stat: -rw-r--r-- 1,123 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
From d73a8df714b946e2d211b1ec553369fd8437ee18 Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@debian.org>
Date: Thu, 8 Oct 2015 11:57:06 -0700
Subject: Do not skip tests.

 If Build-Depends are satisfied, importing ElementTree should not fail. If it
 does, it's better to fail than to skip the test silently.
Forwarded: not-needed
Last-Update: 2012-03-02

Patch-Name: no-test-skipping.diff
---
 test/test_writers/test_odt.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test_writers/test_odt.py b/test/test_writers/test_odt.py
index 845f465..b781558 100755
--- a/test/test_writers/test_odt.py
+++ b/test/test_writers/test_odt.py
@@ -72,6 +72,7 @@ class DocutilsOdtTestCase(DocutilsTestSupport.StandardTestCase):
                     from elementtree import ElementTree as etree
                     WhichElementTree = 'elementtree'
                 except ImportError, e:
+                    raise
                     s1 = '\nSkipped test of odf_odt writer.  ' \
                          'In order to test odf_odt writer ' \
                          'must install either a version of Python containing ' \