From 78cb46a0797e836c2a7c7366bffd3663b75b0afe Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Thu, 16 Feb 2017 18:22:04 +0500 Subject: [PATCH] TST fix a weird OS X testing issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/test_webclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_webclient.py b/tests/test_webclient.py index af531c81f..3ad1aa70e 100644 --- a/tests/test_webclient.py +++ b/tests/test_webclient.py @@ -350,7 +350,7 @@ class WebClientTestCase(unittest.TestCase): b' \n \n ' b'click here\n \n\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'