summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-07-06 12:29:49 (GMT)
committerGitHub <noreply@github.com>2020-07-06 12:29:49 (GMT)
commitdeb016224cc506503fb05e821a60158c83918ed4 (patch)
tree21b683e93134e016806477e15df1211567441301 /Lib/test/test_set.py
parentb4a9263708cc67c98c4d53b16933f6e5dd07990f (diff)
downloadcpython-deb016224cc506503fb05e821a60158c83918ed4.zip
cpython-deb016224cc506503fb05e821a60158c83918ed4.tar.gz
cpython-deb016224cc506503fb05e821a60158c83918ed4.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21317)
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 68d4942..e45f018 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -1,5 +1,6 @@
import unittest
from test import support
+from test.support import warnings_helper
import gc
import weakref
import operator
@@ -953,7 +954,7 @@ class TestBasicOpsBytes(TestBasicOps, unittest.TestCase):
class TestBasicOpsMixedStringBytes(TestBasicOps, unittest.TestCase):
def setUp(self):
- self._warning_filters = support.check_warnings()
+ self._warning_filters = warnings_helper.check_warnings()
self._warning_filters.__enter__()
warnings.simplefilter('ignore', BytesWarning)
self.case = "string and bytes set"