diff options
author | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-05-17 23:31:16 +0200 |
---|---|---|
committer | Ronny Pfannschmidt <opensource@ronnypfannschmidt.de> | 2018-05-23 16:45:09 +0200 |
commit | 9aacb4635e81edd6ecf281d4f6c0cfc8e94ab301 (patch) | |
tree | 195e1646c52970c23a8c1e0d3460841646a32e69 /testing/test_doctest.py | |
parent | d41119ed04b4b48e0d5db74d7a4ee29192d9e6b1 (diff) | |
download | pytest-9aacb4635e81edd6ecf281d4f6c0cfc8e94ab301.tar.gz |
run pyupgrade
Diffstat (limited to 'testing/test_doctest.py')
-rw-r--r-- | testing/test_doctest.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/test_doctest.py b/testing/test_doctest.py index 314398395..b830473a4 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -117,8 +117,8 @@ class TestDoctests(object): >>> 1 1 """) - expected = set(['xdoc.txt', 'test.foo', 'test_normal.txt']) - assert set(x.basename for x in testdir.tmpdir.listdir()) == expected + expected = {'xdoc.txt', 'test.foo', 'test_normal.txt'} + assert {x.basename for x in testdir.tmpdir.listdir()} == expected args = ["--doctest-glob=xdoc*.txt", "--doctest-glob=*.foo"] result = testdir.runpytest(*args) result.stdout.fnmatch_lines([ @@ -145,11 +145,11 @@ class TestDoctests(object): """ testdir.makeini(""" [pytest] - doctest_encoding={0} + doctest_encoding={} """.format(encoding)) doctest = u""" - >>> u"{0}" - {1} + >>> u"{}" + {} """.format(test_string, repr(test_string)) testdir._makefile(".txt", [doctest], {}, encoding=encoding) |