0

contributors.py Python3 refactor

This commit is contained in:
Ben Steadman
2019-03-20 19:38:15 +00:00
parent bd596c56c2
commit 7a2b0e6061
2 changed files with 168 additions and 1 deletions

View File

@@ -2,7 +2,10 @@
import unittest
# For convenience
import sys,os,logging
import sys
import os
import logging
sys.path.insert(0, os.getcwd())
sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
@@ -12,15 +15,19 @@ from test_rendertileset import RendertileSetTest
from test_settings import SettingsTest
from test_tileset import TilesetTest
from test_cache import TestLRU
from test_contributors import TestContributors
# DISABLE THIS BLOCK TO GET LOG OUTPUT FROM TILESET FOR DEBUGGING
if 0:
root = logging.getLogger()
class NullHandler(logging.Handler):
def handle(self, record):
pass
def emit(self, record):
pass
def createLock(self):
self.lock = None
root.addHandler(NullHandler())