Skip to content

Instantly share code, notes, and snippets.

@usaturn
Created October 3, 2012 03:55
Show Gist options
  • Save usaturn/3824906 to your computer and use it in GitHub Desktop.
Save usaturn/3824906 to your computer and use it in GitHub Desktop.
test_pep8.pyのエラー
C:\work\repo\poker>nosetests
E.......
======================================================================
ERROR: Failure: SyntaxError (invalid syntax (test_pep8.py, line 2))
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\nose\loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "C:\Python27\lib\site-packages\nose\importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "C:\Python27\lib\site-packages\nose\importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "C:\work\repo\poker\test_pep8.py", line 2
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))BASE_DIR = os.path.dirname(CURRENT_DIR)
^
SyntaxError: invalid syntax
----------------------------------------------------------------------
Ran 8 tests in 0.029s
FAILED (errors=1)
@usaturn
Copy link
Author

usaturn commented Oct 3, 2012

test_pep8.pyの1行目、2行目に改行が必要だったというヲチでした。ホントすんません・・・・

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment