mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
#12890: skip tests which fail on windows until fixed or rewritten.
We may rewrite these using mock per issue 15749.
This commit is contained in:
parent
4d9f31846a
commit
74076cb85e
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,6 @@ from test.support import run_unittest
|
||||||
from test.script_helper import assert_python_failure, temp_dir
|
from test.script_helper import assert_python_failure, temp_dir
|
||||||
import unittest
|
import unittest
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
|
||||||
import tempfile
|
|
||||||
import cgitb
|
import cgitb
|
||||||
|
|
||||||
class TestCgitb(unittest.TestCase):
|
class TestCgitb(unittest.TestCase):
|
||||||
|
@ -38,6 +36,7 @@ class TestCgitb(unittest.TestCase):
|
||||||
self.assertIn("ValueError", text)
|
self.assertIn("ValueError", text)
|
||||||
self.assertIn("Hello World", text)
|
self.assertIn("Hello World", text)
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform=='win32', "test fails on windows, see issue 12890")
|
||||||
def test_syshook_no_logdir_default_format(self):
|
def test_syshook_no_logdir_default_format(self):
|
||||||
with temp_dir() as tracedir:
|
with temp_dir() as tracedir:
|
||||||
rc, out, err = assert_python_failure(
|
rc, out, err = assert_python_failure(
|
||||||
|
@ -51,6 +50,7 @@ class TestCgitb(unittest.TestCase):
|
||||||
self.assertIn('<p>', out)
|
self.assertIn('<p>', out)
|
||||||
self.assertIn('</p>', out)
|
self.assertIn('</p>', out)
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform=='win32', "test fails on windows, see issue 12890")
|
||||||
def test_syshook_no_logdir_text_format(self):
|
def test_syshook_no_logdir_text_format(self):
|
||||||
# Issue 12890: we were emitting the <p> tag in text mode.
|
# Issue 12890: we were emitting the <p> tag in text mode.
|
||||||
with temp_dir() as tracedir:
|
with temp_dir() as tracedir:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue