diff options
author | Anthony Sottile <asottile@umich.edu> | 2019-06-02 15:40:34 -0700 |
---|---|---|
committer | Bruno Oliveira <bruno@esss.com.br> | 2019-06-03 12:08:02 -0300 |
commit | 4df529e5b9e36b32fbe715386200729788478b6c (patch) | |
tree | 60f573772ab163489328bc0a81a31cbffe32b511 /testing/test_doctest.py | |
parent | a91fe1feddbded535a4322ab854429e3a3961fb4 (diff) | |
download | pytest-4df529e5b9e36b32fbe715386200729788478b6c.tar.gz |
Clean up __future__ and coding: in tests
Diffstat (limited to 'testing/test_doctest.py')
-rw-r--r-- | testing/test_doctest.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/testing/test_doctest.py b/testing/test_doctest.py index 54b23e15d..65c8cf366 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -574,14 +574,13 @@ class TestDoctests: """Fix internal error with docstrings containing non-ascii characters. """ testdir.makepyfile( - ''' - # -*- coding: utf-8 -*- + '''\ def foo(): """ >>> name = 'с' # not letter 'c' but instead Cyrillic 's'. 'anything' """ - ''' + ''' ) result = testdir.runpytest("--doctest-modules") result.stdout.fnmatch_lines(["Got nothing", "* 1 failed in*"]) @@ -652,9 +651,6 @@ class TestDoctests: """ p = testdir.makepyfile( test_unicode_doctest_module=""" - # -*- coding: utf-8 -*- - from __future__ import unicode_literals - def fix_bad_unicode(text): ''' >>> print(fix_bad_unicode('único')) |