Fix test_package_ordering on Windows

This commit is contained in:
Bruno Oliveira
2018-08-24 20:10:37 -03:00
parent dce8df45d5
commit f0226e9329

View File

@@ -1630,21 +1630,21 @@ def test_package_ordering(testdir):
"""
.
└── root
├── TestRoot.py
├── check_root.py
├── __init__.py
├── sub1
│ ├── TestSub1.py
│ ├── check_sub1.py
│ └── __init__.py
└── sub2
└── test
├── TestSub2.py
├── check_sub2.py
└── test_in_sub2.py
"""
testdir.makeini(
"""
[pytest]
python_files=Test*.py
python_files=check_*.py
"""
)
root = testdir.mkpydir("root")
@@ -1653,9 +1653,9 @@ def test_package_ordering(testdir):
sub2 = root.mkdir("sub2")
sub2_test = sub2.mkdir("sub2")
root.join("TestRoot.py").write("def test_1(): pass")
sub1.join("TestSub1.py").write("def test_2(): pass")
sub2_test.join("TestSub2.py").write("def test_3(): pass")
root.join("check_root.py").write("def test_1(): pass")
sub1.join("check_sub1.py").write("def test_2(): pass")
sub2_test.join("check_sub2.py").write("def test_3(): pass")
sub2_test.join("test_in_sub2.py").write("def test_4(): pass")
# Execute from .