summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-12-20 20:19:49 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-01-03 06:26:21 -0500
commit7ff93a9740da5dec4eba6c6cad288d25a472d75a (patch)
treeb81243f1508e4727dc28094c48be84ac6ae07706 /tests/test_plugins.py
parent12c5fcd57fd1cce3bc3563732f5502f5e943c0e0 (diff)
downloadpython-coveragepy-git-7ff93a9740da5dec4eba6c6cad288d25a472d75a.tar.gz
Use set literals
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index d14f5c47..1f224695 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -400,12 +400,12 @@ class GoodFileTracerTest(FileTracerTest):
# have 7 lines in it. If render() was called with line number 4,
# then the plugin will claim that lines 4 and 5 were executed.
analysis = cov._analyze("foo_7.html")
- self.assertEqual(analysis.statements, set([1, 2, 3, 4, 5, 6, 7]))
+ self.assertEqual(analysis.statements, {1, 2, 3, 4, 5, 6, 7})
# Plugins don't do branch coverage yet.
self.assertEqual(analysis.has_arcs(), True)
self.assertEqual(analysis.arc_possibilities(), [])
- self.assertEqual(analysis.missing, set([1, 2, 3, 6, 7]))
+ self.assertEqual(analysis.missing, {1, 2, 3, 6, 7})
def test_plugin2_with_text_report(self):
self.make_render_and_caller()
@@ -553,7 +553,7 @@ class GoodFileTracerTest(FileTracerTest):
class MyReporter(coverage.FileReporter):
def lines(self):
- return set([99, 999, 9999])
+ return {99, 999, 9999}
def coverage_init(reg, options):
reg.add_file_tracer(Plugin())