Modify a test to make sure arguments are getting passed correctly

This commit is contained in:
Anthony Sottile 2014-03-22 15:22:06 -07:00
parent afed660077
commit a1ba715b50
2 changed files with 5 additions and 3 deletions

View file

@ -67,6 +67,8 @@ setup(
local.path('__init__.py').write('')
local.path('main.py').write("""
def func():
import sys
print repr(sys.argv[1:])
print 'Hello World'
return 0
""")
@ -142,4 +144,4 @@ def config_for_python_pre_commit_git_repo(python_pre_commit_git_repo):
jsonschema.validate([config], CONFIG_JSON_SCHEMA)
return config
return config