diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-10 18:17:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 18:17:13 (GMT) |
commit | af6932575391bca10f4f2145b56e3edbe9765343 (patch) | |
tree | f74ec5c5e2e028ed8ccc2b087ef44776992fa1be /Lib/test/test_binhex.py | |
parent | 4a4f660cfde8b683634c53e6214a6baa51de43b1 (diff) | |
download | cpython-af6932575391bca10f4f2145b56e3edbe9765343.zip cpython-af6932575391bca10f4f2145b56e3edbe9765343.tar.gz cpython-af6932575391bca10f4f2145b56e3edbe9765343.tar.bz2 |
bpo-40927: Fix test_binhex when run twice (GH-20764) (GH-20789)
test_binhex now uses import_fresh_module() to ensure that it raises
DeprecationWarning each time.
(cherry picked from commit 9c24e2e4c10705d95258558348417a28007dac66)
Diffstat (limited to 'Lib/test/test_binhex.py')
-rw-r--r-- | Lib/test/test_binhex.py | 2 |
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): |