diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 18:25:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:19 -0400 |
commit | ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 (patch) | |
tree | 5cd11a9f699ec93711422b00b519d096b1135ff3 /tests/test_config.py | |
parent | 4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (diff) | |
download | python-coveragepy-git-ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712.tar.gz |
refactor: pyupgrade --py36-plus tests/**.py
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 3330290f..83d756a5 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,3 @@ -# 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 @@ -6,7 +5,7 @@ from collections import OrderedDict -import mock +from unittest import mock import pytest import coverage @@ -83,13 +82,13 @@ class ConfigTest(CoverageTest): cov = coverage.Coverage(config_file="pyproject.toml") assert cov.config.timid assert not cov.config.branch - assert cov.config.concurrency == [u"a", u"b"] - assert cov.config.data_file == u".hello_kitty.data" - assert cov.config.plugins == [u"plugins.a_plugin"] + assert cov.config.concurrency == ["a", "b"] + assert cov.config.data_file == ".hello_kitty.data" + assert cov.config.plugins == ["plugins.a_plugin"] assert cov.config.precision == 3 - assert cov.config.html_title == u"tabblo & «ταБЬℓσ»" + assert cov.config.html_title == "tabblo & «ταБЬℓσ»" assert round(abs(cov.config.fail_under-90.5), 7) == 0 - assert cov.config.get_plugin_options("plugins.a_plugin") == {u"hello": u"world"} + assert cov.config.get_plugin_options("plugins.a_plugin") == {"hello": "world"} # Test that our class doesn't reject integers when loading floats self.make_file("pyproject.toml", """\ |