From 60229557fb5e8687041f679568db65bc339143f7 Mon Sep 17 00:00:00 2001 From: coagulant Date: Wed, 22 May 2013 01:23:00 +0400 Subject: [PATCH] Respect python 3 --- tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index ab6490b5..4aab3cdf 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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("

This isn't python!

", _out="extra.py") assert self.cover.get_coverage() == []