mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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 9c24e2e4c1
)
This commit is contained in:
parent
4a4f660cfd
commit
af69325753
2 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue