Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Fix assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Oct 7, 2015
1 parent 9364c51 commit a7c51ae
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_tax.py
Expand Up @@ -4,17 +4,16 @@


def test_main(testdir):
testdir.makefile('.ini', tox="""[tox]
testdir.makefile('.ini', tox=r"""[tox]
envlist = foobar
skipsdist = true
[testenv]
commands =
python -c "import sys; print('sys.executable=%%r' %% sys.executable)"
python -c "import sys; sys.executable == %r and sys.stdout.write('OK\\n')"
""" % (
sys.executable,
))
python -c "import sys; print('sys.executable=%r' % sys.executable)"
python -c "import sys; sys.stdout.write('OK\n') if {0!r}.startswith(sys.executable) or sys.executable.startswith({0!r}) else sys.stdout.write('BAD\n')"
""".format(sys.executable))

result = testdir.run('tax', '-e', 'foobar')
result.stdout.fnmatch_lines([
"foobar create: *",
Expand Down

0 comments on commit a7c51ae

Please sign in to comment.