mirror of
https://github.com/python/cpython.git
synced 2025-09-02 23:18:25 +00:00
gh-116303: Skip test module dependent tests if test modules are unavailable (#117341)
This commit is contained in:
parent
2ec6bb4111
commit
ea94b3b149
57 changed files with 255 additions and 123 deletions
|
@ -12,6 +12,7 @@ import unittest
|
|||
from test import support
|
||||
from test.support import os_helper
|
||||
from test.support.os_helper import TESTFN
|
||||
from test.support.import_helper import import_module
|
||||
|
||||
ALL_CJKENCODINGS = [
|
||||
# _codecs_cn
|
||||
|
@ -212,7 +213,7 @@ class Test_IncrementalEncoder(unittest.TestCase):
|
|||
@support.cpython_only
|
||||
def test_subinterp(self):
|
||||
# bpo-42846: Test a CJK codec in a subinterpreter
|
||||
import _testcapi
|
||||
_testcapi = import_module("_testcapi")
|
||||
encoding = 'cp932'
|
||||
text = "Python の開発は、1990 年ごろから開始されています。"
|
||||
code = textwrap.dedent("""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue