Skip to content

Commit

Permalink
tests.py: logging is configured during imports, if uncommented
Browse files Browse the repository at this point in the history
  • Loading branch information
zothar committed Mar 5, 2012
1 parent 878d756 commit e01e096
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests.py
Expand Up @@ -4,6 +4,14 @@
@author: Rio @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 # from mclevel import loadWorldNumber, BoundingBox
# import errorreporting # annotate tracebacks with call arguments # import errorreporting # annotate tracebacks with call arguments


Expand All @@ -12,7 +20,6 @@
from entity import Entity, TileEntity from entity import Entity, TileEntity
from infiniteworld import MCInfdevOldLevel, MCServerChunkGenerator from infiniteworld import MCInfdevOldLevel, MCServerChunkGenerator
import itertools import itertools
import logging
import mclevel import mclevel
import nbt import nbt
import numpy import numpy
Expand All @@ -24,12 +31,6 @@
import time import time
import unittest 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): def mktemp(suffix):
td = tempfile.mkdtemp(suffix) td = tempfile.mkdtemp(suffix)
Expand Down

0 comments on commit e01e096

Please sign in to comment.