Skip to content

Commit

Permalink
tests: Fix __init__
Browse files Browse the repository at this point in the history
I'm actually not sure if we need this anymore or if we can
repurpose it to be something more useful.
  • Loading branch information
MurphyMc committed May 31, 2013
1 parent eeed74c commit 5c31626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from pox.core import core
import __main__
import pox.boot

log = core.getLogger("tests")

Expand All @@ -24,12 +24,12 @@ def _up (e):
log.info("Starting")
for test in _tests:
log.info("Test %s", test)
if __main__.doImport("tests." + test) is True:
if pox.boot._do_import("tests." + test) is True:
log.error("Test %s not found", test)
return

def launch (**kw):
__main__.cli = False # Disable CLI
#__main__.cli = False # Disable CLI
global _first
if _first:
core.addListenerByName("UpEvent", _up)
Expand Down

0 comments on commit 5c31626

Please sign in to comment.