mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
#7092: Silence more py3k warnings. Patch by Florent Xicluna.
This commit is contained in:
parent
17ae2ba78f
commit
dde5b94875
39 changed files with 102 additions and 85 deletions
|
|
@ -159,6 +159,7 @@ import time
|
|||
import traceback
|
||||
import warnings
|
||||
import unittest
|
||||
import imp
|
||||
|
||||
|
||||
# Ignore ImportWarnings that only occur in the source tree,
|
||||
|
|
@ -955,7 +956,7 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
|
|||
indirect_test()
|
||||
else:
|
||||
def run_the_test():
|
||||
reload(the_module)
|
||||
imp.reload(the_module)
|
||||
|
||||
deltas = []
|
||||
nwarmup, ntracked, fname = huntrleaks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue