diff options
| -rw-r--r-- | .travis.yml | 4 | ||||
| -rw-r--r-- | pathod/language/base.py | 2 | ||||
| -rw-r--r-- | test/pathod/test_language_base.py | 8 | ||||
| -rw-r--r-- | tox.ini | 2 | 
4 files changed, 8 insertions, 8 deletions
| diff --git a/.travis.yml b/.travis.yml index bdfb4655..5f065d53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,9 +22,9 @@ matrix:        git:          depth: 9999999      - python: 3.5 -      env: SCOPE="netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py" +      env: SCOPE="netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py test/pathod/test_language_base.py"      - python: 3.5 -      env: SCOPE="netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py" NO_ALPN=1 +      env: SCOPE="netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py test/pathod/test_language_base.py" NO_ALPN=1      - python: 2.7        env: DOCS=1        script: 'cd docs && make html' diff --git a/pathod/language/base.py b/pathod/language/base.py index 11ee0623..1369a3c7 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -226,7 +226,7 @@ class TokValueFile(Token):          return generators.FileGenerator(s)      def spec(self): -        return "<'%s'" % strutils.bytes_to_escaped_str(self.path) +        return "<'%s'" % self.path  TokValue = pp.MatchFirst( diff --git a/test/pathod/test_language_base.py b/test/pathod/test_language_base.py index 47e51bb0..075dc2b8 100644 --- a/test/pathod/test_language_base.py +++ b/test/pathod/test_language_base.py @@ -38,7 +38,7 @@ class TestTokValueNakedLiteral:  class TestTokValueLiteral: -    def test_espr(self): +    def test_expr(self):          v = base.TokValueLiteral("foo")          assert v.expr()          assert v.val == b"foo" @@ -132,7 +132,7 @@ class TestTokValueFile:          with tutils.tmpdir() as t:              p = os.path.join(t, "path")              with open(p, "wb") as f: -                f.write("x" * 10000) +                f.write(b"x" * 10000)              assert v.get_generator(language.Settings(staticdir=t)) @@ -207,13 +207,13 @@ class TestMisc:              p = os.path.join(t, "path")              s = base.Settings(staticdir=t)              with open(p, "wb") as f: -                f.write("a" * 20) +                f.write(b"a" * 20)              v = e.parseString("m<path")[0]              tutils.raises("invalid value length", v.values, s)              p = os.path.join(t, "path")              with open(p, "wb") as f: -                f.write("a" * 4) +                f.write(b"a" * 4)              v = e.parseString("m<path")[0]              assert v.values(s) @@ -8,7 +8,7 @@ deps = -rrequirements.txt  commands = py.test -n 8 --timeout 60 ./test  [testenv:py35] -commands = py.test -n 8 --timeout 60 test/netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py +commands = py.test -n 8 --timeout 60 test/netlib test/mitmproxy/script test/pathod/test_utils.py test/pathod/test_log.py test/pathod/test_language_generators.py test/pathod/test_language_writer.py test/pathod/test_language_base.py  [testenv:lint]  deps = flake8 | 
