Skip to content

Commit

Permalink
Respect python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
coagulant committed May 21, 2013
1 parent c470a31 commit 6022955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_api.py
Expand Up @@ -119,13 +119,13 @@ def test_reporter(self):
'name': 'runtests.py', 'coverage': [None, 1, None, 1, 1]}]

def test_missing_file(self):
sh.echo('print "Python rocks!"', _out="extra.py")
sh.echo('print("Python rocks!")', _out="extra.py")
sh.coverage('run', 'extra.py')
sh.rm('-f', 'extra.py')
assert self.cover.get_coverage() == []

def test_not_python(self):
sh.echo('print "Python rocks!"', _out="extra.py")
sh.echo('print("Python rocks!")', _out="extra.py")
sh.coverage('run', 'extra.py')
sh.echo("<h1>This isn't python!</h1>", _out="extra.py")
assert self.cover.get_coverage() == []
Expand Down

0 comments on commit 6022955

Please sign in to comment.