Unverified Kaydet (Commit) 0a18422b authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) GitHub

allow the test suite to pass if the strop module doesn't exist (GH-5566)

strop is highly legacy and can be safely compiled out in most installations. Let's not fail the test suite for its absence.
üst 2a4e2ea1
......@@ -2,11 +2,12 @@ import warnings
warnings.filterwarnings("ignore", "strop functions are obsolete;",
DeprecationWarning,
r'test.test_strop|unittest')
import strop
import unittest
import sys
from test import test_support
strop = test_support.import_module("strop")
class StropFunctionTestCase(unittest.TestCase):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment