Fix invalid Python file encoding "utf8" (#5252)

Fix invalid Python file encoding "utf8"
This commit is contained in:
Bruno Oliveira
2019-05-23 20:24:23 -03:00
committed by GitHub
175 changed files with 184 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
# encoding: utf-8
# -*- coding: utf-8 -*-
import doctest
import operator
import sys

View File

@@ -1244,7 +1244,7 @@ def test_syntax_error_with_non_ascii_chars(testdir):
"""
testdir.makepyfile(
u"""
# -*- coding: UTF-8 -*-
# -*- coding: utf-8 -*-
"""

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import pytest
from _pytest import python
from _pytest import runner

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import sys
import six

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import pytest

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
def test_show_fixtures_and_test(testdir):
""" Verifies that fixtures are not executed. """
p = testdir.makepyfile(