File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change
1
+ import os .path
1
2
import textwrap
2
3
3
4
import py
4
5
5
6
import pytest
6
- from _pytest .config import PytestPluginManager , _uniquepath
7
+ from _pytest .config import _uniquepath
8
+ from _pytest .config import PytestPluginManager
7
9
from _pytest .main import ExitCode
8
- import os .path
9
10
10
11
11
12
def ConftestWithSetinitial (path ):
@@ -275,18 +276,15 @@ def fixture():
275
276
result .stdout .fnmatch_lines (["*conftest_loaded*" , "PASSED" ])
276
277
assert result .ret == ExitCode .OK
277
278
279
+
278
280
@pytest .mark .skipif (
279
- os .path .normcase ('x' ) != os .path .normcase ('X' ),
281
+ os .path .normcase ("x" ) != os .path .normcase ("X" ),
280
282
reason = "only relevant for case insensitive file systems" ,
281
283
)
282
284
def test_conftest_badcase (testdir ):
283
285
"""Check conftest.py loading when directory casing is wrong."""
284
286
testdir .tmpdir .mkdir ("JenkinsRoot" ).mkdir ("test" )
285
- source = {
286
- "setup.py" : "" ,
287
- "test/__init__.py" : "" ,
288
- "test/conftest.py" : ""
289
- }
287
+ source = {"setup.py" : "" , "test/__init__.py" : "" , "test/conftest.py" : "" }
290
288
testdir .makepyfile (** {"JenkinsRoot/%s" % k : v for k , v in source .items ()})
291
289
292
290
testdir .tmpdir .join ("jenkinsroot/test" ).chdir ()
You can’t perform that action at this time.
0 commit comments