Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kellrott committed Nov 21, 2019
1 parent a10ac8e commit ab7839e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conformance/run_conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@

try:
from importlib.machinery import SourceFileLoader

def load_test_mod(name):
return imp.load_source('test.%s' % name, os.path.join(TESTS, name + ".py"))
return SourceFileLoader('test.%s' % name, os.path.join(TESTS, name + ".py")).load_module()
except ImportError:
#probably running older python without newer importlib
# probably running older python without newer importlib
import imp

def load_test_mod(name):
return imp.load_source('test.%s' % name, os.path.join(TESTS, name + ".py"))


def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size)).lower()

Expand Down

0 comments on commit ab7839e

Please sign in to comment.