diff options
| author | Victor Stinner <vstinner@python.org> | 2020-06-10 19:54:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 19:54:29 +0200 |
| commit | 9c24e2e4c10705d95258558348417a28007dac66 (patch) | |
| tree | eb5f7c1a0e771574c3c10382e2aef370269471b9 /Lib | |
| parent | 8eb4aea26297daf105108c4866d4c692bd8b81f9 (diff) | |
| download | cpython-git-9c24e2e4c10705d95258558348417a28007dac66.tar.gz | |
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')
| -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 86ca37ce1b..859553222a 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): |
