diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-07-09 21:57:46 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-07-09 21:57:46 -0400 |
commit | 68c834ffee22ecae8574924c8827b4dd860db4b2 (patch) | |
tree | 0c1efb2113e03d59d6aa85996aebe53374f386d9 | |
parent | 9dee319c84c52c8e9201e1eb919bc919668366e6 (diff) | |
download | python-coveragepy-git-68c834ffee22ecae8574924c8827b4dd860db4b2.tar.gz |
Py3k: print statements in test files and gold annotation files have to be switched to a 2-and-3 compatible form that 2to3.py won't change.
-rw-r--r-- | test/farm/annotate/gold_anno_dir/a_a.py,cover | 4 | ||||
-rw-r--r-- | test/farm/annotate/gold_anno_dir/b_b.py,cover | 3 | ||||
-rw-r--r-- | test/farm/annotate/src/a/a.py | 4 | ||||
-rw-r--r-- | test/farm/annotate/src/b/b.py | 3 |
4 files changed, 8 insertions, 6 deletions
diff --git a/test/farm/annotate/gold_anno_dir/a_a.py,cover b/test/farm/annotate/gold_anno_dir/a_a.py,cover index fb3f5435..d0ff3c0c 100644 --- a/test/farm/annotate/gold_anno_dir/a_a.py,cover +++ b/test/farm/annotate/gold_anno_dir/a_a.py,cover @@ -1,5 +1,5 @@ > def a(x): > if x == 1: -> print "x is 1" +> print("x is 1") ! else: -! print "x is not 1" +! print("x is not 1") diff --git a/test/farm/annotate/gold_anno_dir/b_b.py,cover b/test/farm/annotate/gold_anno_dir/b_b.py,cover index a3f5daec..90d076f1 100644 --- a/test/farm/annotate/gold_anno_dir/b_b.py,cover +++ b/test/farm/annotate/gold_anno_dir/b_b.py,cover @@ -1,2 +1,3 @@ > def b(x): -> print "x is %s" % x +> msg = "x is %s" % x +> print(msg) diff --git a/test/farm/annotate/src/a/a.py b/test/farm/annotate/src/a/a.py index 825ce1b2..c2583d1e 100644 --- a/test/farm/annotate/src/a/a.py +++ b/test/farm/annotate/src/a/a.py @@ -1,5 +1,5 @@ def a(x): if x == 1: - print "x is 1" + print("x is 1") else: - print "x is not 1" + print("x is not 1") diff --git a/test/farm/annotate/src/b/b.py b/test/farm/annotate/src/b/b.py index 27629e4f..625a5490 100644 --- a/test/farm/annotate/src/b/b.py +++ b/test/farm/annotate/src/b/b.py @@ -1,2 +1,3 @@ def b(x): - print "x is %s" % x + msg = "x is %s" % x + print(msg) |