summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-01-01 16:38:58 -0500
committerNed Batchelder <ned@nedbatchelder.com>2013-01-01 16:38:58 -0500
commit92894b5562af16f482242a387d6bbf216025bf66 (patch)
tree1bd7aadcb0897d1c95d56401834185756cc790aa
parent72952295770b200e8efcce392bbbb5f60ac7456c (diff)
downloadpython-coveragepy-git-92894b5562af16f482242a387d6bbf216025bf66.tar.gz
Mark expected-failure tests as such
-rw-r--r--test/test_api.py2
-rw-r--r--test/test_arcs.py2
-rw-r--r--test/test_coverage.py2
-rw-r--r--test/test_process.py4
4 files changed, 5 insertions, 5 deletions
diff --git a/test/test_api.py b/test/test_api.py
index 5945e6a8..559684b8 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -335,7 +335,7 @@ class ApiTest(CoverageTest):
self.assertEqual(statements, [1, 2])
self.assertEqual(missing, [])
- if 0: # Skipping failing test
+ if 0: # expected failure
# for https://bitbucket.org/ned/coveragepy/issue/79
def test_start_save_stop(self):
self.make_file("code1.py", """\
diff --git a/test/test_arcs.py b/test/test_arcs.py
index 34d10696..11288fd2 100644
--- a/test/test_arcs.py
+++ b/test/test_arcs.py
@@ -448,7 +448,7 @@ class ExceptionArcTest(CoverageTest):
arcz=".1 12 23 34 3D 45 56 67 68 7A 8A A3 AB AD BC CD D.",
arcz_missing="3D AB BC CD", arcz_unpredicted="")
- if 0:
+ if 0: # expected failure
def test_finally_in_loop_2(self):
self.check_coverage("""\
for i in range(5):
diff --git a/test/test_coverage.py b/test/test_coverage.py
index 693b6ca0..0918dfe1 100644
--- a/test/test_coverage.py
+++ b/test/test_coverage.py
@@ -400,7 +400,7 @@ class SimpleStatementTest(CoverageTest):
""",
[1,2,3,4,5], "4")
- if 0:
+ if 0: # expected failure
# Peephole optimization of jumps to jumps can mean that some statements
# never hit the line tracer. The behavior is different in different
# versions of Python, so don't run this test:
diff --git a/test/test_process.py b/test/test_process.py
index 428bb5f1..bf22cc9d 100644
--- a/test/test_process.py
+++ b/test/test_process.py
@@ -331,9 +331,9 @@ class ProcessTest(CoverageTest):
out2 = self.run_command("python -m test.try_execfile")
self.assertMultiLineEqual(out, out2)
- if 0:
+ if 0: # Expected failure
# For https://bitbucket.org/ned/coveragepy/issue/207
- def test_coverage_run_dashm_is_like_python_dashm_with__main__(self):
+ def test_coverage_run_dashm_is_like_python_dashm_with__main__207(self):
self.make_file("package/__init__.py") # empty
self.make_file("package/__main__.py", "#\n") # empty
out = self.run_command("coverage run -m package")