TST fix a weird OS X testing issue

pytest intercepts temp file creation to provide readable file/folder
names; path is built from method name; in case of conflicts
pytests uses increasing numbers, but it seems it doesn’t account
for case-insensitive (but case preserving) OS X filesystem. There
are methods named test_encoding, pytest thinks test_Encoding is
different and fails to create a test folder
This commit is contained in:
Mikhail Korobov 2017-02-16 18:22:04 +05:00
parent b9928558b2
commit 78cb46a079
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ class WebClientTestCase(unittest.TestCase):
b' </head>\n <body bgcolor="#FFFFFF" text="#000000">\n '
b'<a href="/file">click here</a>\n </body>\n</html>\n')
def test_Encoding(self):
def test_encoding(self):
""" Test that non-standart body encoding matches
Content-Encoding header """
body = b'\xd0\x81\xd1\x8e\xd0\xaf'