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

Skip to content

Commit 0a18422

Browse files
authored
allow the test suite to pass if the strop module doesn't exist (pythonGH-5566)
strop is highly legacy and can be safely compiled out in most installations. Let's not fail the test suite for its absence.
1 parent 2a4e2ea commit 0a18422

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_strop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
warnings.filterwarnings("ignore", "strop functions are obsolete;",
33
DeprecationWarning,
44
r'test.test_strop|unittest')
5-
import strop
65
import unittest
76
import sys
87
from test import test_support
98

9+
strop = test_support.import_module("strop")
10+
1011

1112
class StropFunctionTestCase(unittest.TestCase):
1213

0 commit comments

Comments
 (0)