summaryrefslogtreecommitdiff
path: root/testing/test_cacheprovider.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-06-02 15:32:00 -0700
committerBruno Oliveira <bruno@esss.com.br>2019-06-03 12:08:02 -0300
commita91fe1feddbded535a4322ab854429e3a3961fb4 (patch)
treef49d6841e4b293a850738bf6a0031e101ecebfe8 /testing/test_cacheprovider.py
parent3f1ec520fcb88fd4051829e660b6faefc1c542ea (diff)
downloadpytest-a91fe1feddbded535a4322ab854429e3a3961fb4.tar.gz
pre-commit run pyupgrade --all-files
Diffstat (limited to 'testing/test_cacheprovider.py')
-rw-r--r--testing/test_cacheprovider.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/test_cacheprovider.py b/testing/test_cacheprovider.py
index 31bf530f7..a2e701740 100644
--- a/testing/test_cacheprovider.py
+++ b/testing/test_cacheprovider.py
@@ -11,7 +11,7 @@ from _pytest.main import EXIT_NOTESTSCOLLECTED
pytest_plugins = ("pytester",)
-class TestNewAPI(object):
+class TestNewAPI:
def test_config_cache_makedir(self, testdir):
testdir.makeini("[pytest]")
config = testdir.parseconfigure()
@@ -236,7 +236,7 @@ def test_cache_show(testdir):
assert result.ret == 0
-class TestLastFailed(object):
+class TestLastFailed:
def test_lastfailed_usecase(self, testdir, monkeypatch):
monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", "1")
p = testdir.makepyfile(
@@ -870,7 +870,7 @@ class TestLastFailed(object):
)
-class TestNewFirst(object):
+class TestNewFirst:
def test_newfirst_usecase(self, testdir):
testdir.makepyfile(
**{
@@ -995,7 +995,7 @@ class TestNewFirst(object):
)
-class TestReadme(object):
+class TestReadme:
def check_readme(self, testdir):
config = testdir.parseconfigure()
readme = config.cache._cachedir.joinpath("README.md")
@@ -1034,7 +1034,7 @@ def test_gitignore(testdir):
assert gitignore_path.read_text(encoding="UTF-8") == msg
# Does not overwrite existing/custom one.
- gitignore_path.write_text(u"custom")
+ gitignore_path.write_text("custom")
cache.set("something", "else")
assert gitignore_path.read_text(encoding="UTF-8") == "custom"