Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c38ec2

Browse files
committed
merge #12890: skip tests which fail on windows until fixed or rewritten.
We may rewrite these using mock per issue 15749.
2 parents 7041b99 + 74076cb commit 7c38ec2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_cgitb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
from test.script_helper import assert_python_failure, temp_dir
33
import unittest
44
import sys
5-
import subprocess
6-
import tempfile
75
import cgitb
86

97
class TestCgitb(unittest.TestCase):
@@ -38,6 +36,7 @@ def test_text(self):
3836
self.assertIn("ValueError", text)
3937
self.assertIn("Hello World", text)
4038

39+
@unittest.skipIf(sys.platform=='win32', "test fails on windows, see issue 12890")
4140
def test_syshook_no_logdir_default_format(self):
4241
with temp_dir() as tracedir:
4342
rc, out, err = assert_python_failure(
@@ -51,6 +50,7 @@ def test_syshook_no_logdir_default_format(self):
5150
self.assertIn('<p>', out)
5251
self.assertIn('</p>', out)
5352

53+
@unittest.skipIf(sys.platform=='win32', "test fails on windows, see issue 12890")
5454
def test_syshook_no_logdir_text_format(self):
5555
# Issue 12890: we were emitting the <p> tag in text mode.
5656
with temp_dir() as tracedir:

0 commit comments

Comments
 (0)