Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added travis.yml #79

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Use os.path.join instead of +.
  • Loading branch information
thedrow committed Jun 13, 2017
commit 65dbf4488e4042f967a49e9adf97721f043e58df
5 changes: 3 additions & 2 deletions macropy/test/peg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import unittest
from macropy.peg import macros, peg, Success, cut, ParseError

Expand Down Expand Up @@ -369,7 +370,7 @@ def decode(x):
if i not in [18]: # skipping the "too much nesting" failure test

with self.assertRaises(ParseError):
json_doc.parse(open(__file__ + "/../peg_json/fail%s.json" % i).read())
json_doc.parse(open(os.path.join(__file__, "/../peg_json/fail%s.json" % i)).read())

for i in [1, 2, 3]:
test(json_exp, open(__file__ + "/../peg_json/pass%s.json" % i).read())
test(json_exp, open(os.path.join(__file__, "/../peg_json/pass%s.json" % i)).read())