mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix make ndiff_check spurious failure
The code involving imp is equivalent to "from ndiff import *", and ndiff imports StringIO.StringIO as StringIO, which meant that while ndifftest intended the name to be the module, it was really the class. Just moved the import later to be sure the name was the one we intend.
This commit is contained in:
parent
e4d9793d92
commit
36425f55a6
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,6 @@ import xml
|
|||
xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]
|
||||
|
||||
import xml.dom.minidom
|
||||
import StringIO
|
||||
|
||||
import imp
|
||||
dont_write_bytecode = sys.dont_write_bytecode
|
||||
|
|
@ -23,6 +22,8 @@ for x in dir(ndiff):
|
|||
sys.dont_write_bytecode = dont_write_bytecode
|
||||
del dont_write_bytecode
|
||||
|
||||
import StringIO
|
||||
|
||||
|
||||
class scan_test(unittest.TestCase):
|
||||
"""Test the Scan class."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue