summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-11-15 06:51:35 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-11-15 06:55:09 -0500
commitceb660ca9422ac1b6bcf7d91869f574517e1007d (patch)
treeb46d8de4101988409d63db9a792a8ca36eff221b
parent6f66ab7c6f7ee256c3a9ba253d1b640129db7d72 (diff)
downloadpython-coveragepy-git-ceb660ca9422ac1b6bcf7d91869f574517e1007d.tar.gz
Delete the annotate farm tests
-rw-r--r--tests/farm/annotate/annotate_dir.py10
-rw-r--r--tests/farm/annotate/run.py10
-rw-r--r--tests/farm/annotate/run_encodings.py10
-rw-r--r--tests/farm/annotate/run_multi.py10
-rw-r--r--tests/farm/annotate/src/a/__init__.py0
-rw-r--r--tests/farm/annotate/src/a/a.py8
-rw-r--r--tests/farm/annotate/src/b/__init__.py0
-rw-r--r--tests/farm/annotate/src/b/b.py6
-rw-r--r--tests/farm/annotate/src/multi.py8
-rw-r--r--tests/farm/annotate/src/utf8.py7
-rw-r--r--tests/farm/annotate/src/white.py36
11 files changed, 0 insertions, 105 deletions
diff --git a/tests/farm/annotate/annotate_dir.py b/tests/farm/annotate/annotate_dir.py
deleted file mode 100644
index 0ecf71bd..00000000
--- a/tests/farm/annotate/annotate_dir.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-copy("src", "run")
-run("""
- coverage run multi.py
- coverage annotate -d out_anno_dir
- """, rundir="run")
-compare("gold_anno_dir", "run/out_anno_dir", "*,cover", actual_extra=True)
-clean("run")
diff --git a/tests/farm/annotate/run.py b/tests/farm/annotate/run.py
deleted file mode 100644
index 6a985d5e..00000000
--- a/tests/farm/annotate/run.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-copy("src", "out")
-run("""
- coverage run white.py
- coverage annotate white.py
- """, rundir="out")
-compare("gold", "out", "*,cover")
-clean("out")
diff --git a/tests/farm/annotate/run_encodings.py b/tests/farm/annotate/run_encodings.py
deleted file mode 100644
index 1b738988..00000000
--- a/tests/farm/annotate/run_encodings.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-copy("src", "out_encodings")
-run("""
- coverage run utf8.py
- coverage annotate utf8.py
- """, rundir="out_encodings")
-compare("gold_encodings", "out_encodings", "*,cover")
-clean("out_encodings")
diff --git a/tests/farm/annotate/run_multi.py b/tests/farm/annotate/run_multi.py
deleted file mode 100644
index eff9ff76..00000000
--- a/tests/farm/annotate/run_multi.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-copy("src", "out_multi")
-run("""
- coverage run multi.py
- coverage annotate
- """, rundir="out_multi")
-compare("gold_multi", "out_multi", "*,cover")
-clean("out_multi")
diff --git a/tests/farm/annotate/src/a/__init__.py b/tests/farm/annotate/src/a/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/tests/farm/annotate/src/a/__init__.py
+++ /dev/null
diff --git a/tests/farm/annotate/src/a/a.py b/tests/farm/annotate/src/a/a.py
deleted file mode 100644
index 411d3d8e..00000000
--- a/tests/farm/annotate/src/a/a.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-def a(x):
- if x == 1:
- print("x is 1")
- else:
- print("x is not 1")
diff --git a/tests/farm/annotate/src/b/__init__.py b/tests/farm/annotate/src/b/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/tests/farm/annotate/src/b/__init__.py
+++ /dev/null
diff --git a/tests/farm/annotate/src/b/b.py b/tests/farm/annotate/src/b/b.py
deleted file mode 100644
index f0055b3b..00000000
--- a/tests/farm/annotate/src/b/b.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-def b(x):
- msg = "x is %s" % x
- print(msg)
diff --git a/tests/farm/annotate/src/multi.py b/tests/farm/annotate/src/multi.py
deleted file mode 100644
index 31155b40..00000000
--- a/tests/farm/annotate/src/multi.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-import a.a
-import b.b
-
-a.a.a(1)
-b.b.b(2)
diff --git a/tests/farm/annotate/src/utf8.py b/tests/farm/annotate/src/utf8.py
deleted file mode 100644
index f3988379..00000000
--- a/tests/farm/annotate/src/utf8.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- coding: utf-8 -*-
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-# This comment has an accent: é
-
-print("spam eggs")
diff --git a/tests/farm/annotate/src/white.py b/tests/farm/annotate/src/white.py
deleted file mode 100644
index 56608324..00000000
--- a/tests/farm/annotate/src/white.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
-
-# A test case sent to me by Steve White
-
-def f(self):
- if self==1:
- pass
- elif self.m('fred'):
- pass
- elif (g==1) and (b==2):
- pass
- elif self.m('fred')==True:
- pass
- elif ((g==1) and (b==2))==True:
- pass
- else:
- pass
-
-def g(x):
- if x == 1:
- a = 1
- else:
- a = 2
-
-g(1)
-
-def h(x):
- if 0: #pragma: no cover
- pass
- if x == 1:
- a = 1
- else:
- a = 2
-
-h(2)