From 76293a539a2a981bcdb201bb392c3c4cb91d45cb Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 20 Jul 2021 11:14:56 -0400 Subject: [PATCH] Remove unused patch file --- ...c0665ea044f9682a89633d75442d1a4d2dc4.patch | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 32d8c0665ea044f9682a89633d75442d1a4d2dc4.patch diff --git a/32d8c0665ea044f9682a89633d75442d1a4d2dc4.patch b/32d8c0665ea044f9682a89633d75442d1a4d2dc4.patch deleted file mode 100644 index b9c9647..0000000 --- a/32d8c0665ea044f9682a89633d75442d1a4d2dc4.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 32d8c0665ea044f9682a89633d75442d1a4d2dc4 Mon Sep 17 00:00:00 2001 -From: Ned Batchelder -Date: Thu, 5 Dec 2019 16:37:48 -0500 -Subject: [PATCH] Fix the context tests - -CoverageData.lines() returns a list, but in no guaranteed order. -Set-ify everything to get the correct comparison. ---- - tests/test_pytest_cov.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py -index e79e9aa..3be8278 100644 ---- a/tests/test_pytest_cov.py -+++ b/tests/test_pytest_cov.py -@@ -1934,12 +1934,12 @@ def test_cov_and_no_cov(testdir): - - - def find_labels(text, pattern): -- all_labels = collections.defaultdict(list) -+ all_labels = collections.defaultdict(set) - lines = text.splitlines() - for lineno, line in enumerate(lines, start=1): - labels = re.findall(pattern, line) - for label in labels: -- all_labels[label].append(lineno) -+ all_labels[label].add(lineno) - return all_labels - - -@@ -2007,7 +2007,7 @@ def test_contexts(testdir, opts): - if context == '': - continue - data.set_query_context(context) -- actual = data.lines(test_context_path) -+ actual = set(data.lines(test_context_path)) - assert line_data[label] == actual, "Wrong lines for context {!r}".format(context) - -