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

package info (click to toggle)
python-docutils 0.22.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,524 kB
  • sloc: python: 54,162; lisp: 14,475; xml: 1,807; javascript: 1,032; makefile: 102; sh: 96
file content (27 lines) | stat: -rw-r--r-- 711 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 2a32f53..d8f1f6c 100755
--- a/test/alltests.py
+++ b/test/alltests.py
@@ -74,9 +74,6 @@ class Tee:
             self.file.flush()
 
 
-# must redirect stderr *before* first import of unittest
-sys.stdout = sys.stderr = Tee('alltests.out')
-
 import unittest  # NoQA: E402