Permalink
Browse files

tests.py: logging is configured during imports, if uncommented

  • Loading branch information...
1 parent 878d756 commit e01e096b03d9fe4e0ecaab821c1bed4743db9c3f @zothar committed Mar 5, 2012
Showing with 8 additions and 7 deletions.
  1. +8 −7 tests.py
View
@@ -4,6 +4,14 @@
@author: Rio
'''
+import logging
+
+log = logging.getLogger(__name__)
+warn, error, info, debug = log.warn, log.error, log.info, log.debug
+
+# logging.basicConfig(format=u'%(levelname)s:%(message)s')
+# logging.getLogger().level = logging.INFO
+
# from mclevel import loadWorldNumber, BoundingBox
# import errorreporting # annotate tracebacks with call arguments
@@ -12,7 +20,6 @@
from entity import Entity, TileEntity
from infiniteworld import MCInfdevOldLevel, MCServerChunkGenerator
import itertools
-import logging
import mclevel
import nbt
import numpy
@@ -24,12 +31,6 @@
import time
import unittest
-log = logging.getLogger(__name__)
-warn, error, info, debug = log.warn, log.error, log.info, log.debug
-
-# logging.basicConfig(format=u'%(levelname)s:%(message)s')
-# logging.getLogger().level = logging.INFO
-
def mktemp(suffix):
td = tempfile.mkdtemp(suffix)

0 comments on commit e01e096

Please sign in to comment.