Skip to content
Snippets Groups Projects
Commit 2256a538 authored by Bob Lantz's avatar Bob Lantz
Browse files

Fix pylint error

parent 03ef5567
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-quick : skip tests that take more than ~30 seconds -quick : skip tests that take more than ~30 seconds
""" """
import unittest from unittest import defaultTestLoader, TextTestRunner
import os import os
import sys import sys
from mininet.util import ensureRoot from mininet.util import ensureRoot
...@@ -19,9 +19,9 @@ def runTests( testDir, verbosity=1 ): ...@@ -19,9 +19,9 @@ def runTests( testDir, verbosity=1 ):
ensureRoot() ensureRoot()
cleanup() cleanup()
# discover all tests in testDir # discover all tests in testDir
testSuite = unittest.defaultTestLoader.discover( testDir ) testSuite = defaultTestLoader.discover( testDir )
# run tests # run tests
unittest.TextTestRunner( verbosity=verbosity ).run( testSuite ) TextTestRunner( verbosity=verbosity ).run( testSuite )
if __name__ == '__main__': if __name__ == '__main__':
setLogLevel( 'warning' ) setLogLevel( 'warning' )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment