1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31: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:
dmiller
2014-05-22 02:25:47 +00:00
parent e4d9793d92
commit 36425f55a6

View File

@@ -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."""