File: testall-no-stdout-stderr-redirect.diff

package info (click to toggle)
python-docutils 0.14%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,976 kB
  • sloc: python: 44,718; lisp: 14,476; xml: 1,782; sh: 167; makefile: 150
file content (27 lines) | stat: -rw-r--r-- 716 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: Jakub Wilk <jwilk@debian.org>
Date: Thu, 8 Oct 2015 11:57:05 -0700
Subject: Don't copy test suite output to a log.

When running the test suite, don't copy stdout and stderr output to a log
file, as this would break under LC_ALL=C, PYTHONWARNINGS=d and python3.X.

Forwarded: not-needed
Last-Update: 2011-09-18
---
 test/alltests.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/test/alltests.py b/test/alltests.py
index 4a9b50f..5ce5862 100755
--- a/test/alltests.py
+++ b/test/alltests.py
@@ -70,9 +70,6 @@ def suite():
     sys.stdout.flush()
     return suite
 
-# must redirect stderr *before* first import of unittest
-sys.stdout = sys.stderr = Tee('alltests.out')
-
 import package_unittest