# HG changeset patch # User Jeff Hammel # Date 1471991667 25200 # Node ID 5cb893831f53f8ef01bc3981264246f9760fedb5 # Parent 90ecb5c015de6c0fe88c6a346375cf8e059d6c2b fix for when output is not supplied diff -r 90ecb5c015de -r 5cb893831f53 makeitso/python.py --- a/makeitso/python.py Tue Feb 23 14:12:01 2016 -0800 +++ b/makeitso/python.py Tue Aug 23 15:34:27 2016 -0700 @@ -38,7 +38,7 @@ """template for python unittest""" templates = [('python_package', 'tests', 'test_{{package}}.py')] def pre(self, variables, output): - if 'package' not in variables: + if output and 'package' not in variables: package = os.path.splitext(os.path.basename(output.rstrip(os.path.sep)))[0] indicator = 'test_' if package.startswith(indicator): diff -r 90ecb5c015de -r 5cb893831f53 setup.py --- a/setup.py Tue Feb 23 14:12:01 2016 -0800 +++ b/setup.py Tue Aug 23 15:34:27 2016 -0700 @@ -17,7 +17,7 @@ except IOError: description = '' -version = '0.4.1' +version = '0.4.2' setup(name='MakeItSo', version=version,