summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binhex.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-10 17:54:29 (GMT)
committerGitHub <noreply@github.com>2020-06-10 17:54:29 (GMT)
commit9c24e2e4c10705d95258558348417a28007dac66 (patch)
treeeb5f7c1a0e771574c3c10382e2aef370269471b9 /Lib/test/test_binhex.py
parent8eb4aea26297daf105108c4866d4c692bd8b81f9 (diff)
downloadcpython-9c24e2e4c10705d95258558348417a28007dac66.zip
cpython-9c24e2e4c10705d95258558348417a28007dac66.tar.gz
cpython-9c24e2e4c10705d95258558348417a28007dac66.tar.bz2
bpo-40927: Fix test_binhex when run twice (GH-20764)
test_binhex now uses import_fresh_module() to ensure that it raises DeprecationWarning each time.
Diffstat (limited to 'Lib/test/test_binhex.py')
-rw-r--r--Lib/test/test_binhex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_binhex.py b/Lib/test/test_binhex.py
index 86ca37c..8595532 100644
--- a/Lib/test/test_binhex.py
+++ b/Lib/test/test_binhex.py
@@ -7,7 +7,7 @@ import unittest
from test import support
with support.check_warnings(('', DeprecationWarning)):
- import binhex
+ binhex = support.import_fresh_module('binhex')
class BinHexTestCase(unittest.TestCase):