summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2019-05-12 19:14:06 +0300
committerGitHub <noreply@github.com>2019-05-12 19:14:06 +0300
commit18024467ffb7c1a6f95eddd31d6d6f18b763b84c (patch)
tree0d0a8cd033778f65b2c011da308fd794a058be21
parent6a43c8cd9405c68e223f4c6270bd1e1ac4bc8c5f (diff)
downloadpytest-18024467ffb7c1a6f95eddd31d6d6f18b763b84c.tar.gz
Fix invalid Python file encoding "utf8"
Since Python 3 it must be "utf-8", which is the official name. This is backwards compatible with Python 2.
-rw-r--r--testing/test_capture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_capture.py b/testing/test_capture.py
index 5d80eb63d..0dc2c42d8 100644
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -106,7 +106,7 @@ def test_capturing_unicode(testdir, method):
obj = "u'\u00f6y'"
testdir.makepyfile(
"""
- # coding=utf8
+ # coding=utf-8
# taken from issue 227 from nosetests
def test_unicode():
import sys