-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7545 from asottile/pylib_in_docs
remove usage of pylib in docs
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
doc/en/example/assertion/global_testmodule_config/conftest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import py | ||
import os.path | ||
import shutil | ||
|
||
failure_demo = py.path.local(__file__).dirpath("failure_demo.py") | ||
failure_demo = os.path.join(os.path.dirname(__file__), "failure_demo.py") | ||
pytest_plugins = ("pytester",) | ||
|
||
|
||
def test_failure_demo_fails_properly(testdir): | ||
target = testdir.tmpdir.join(failure_demo.basename) | ||
failure_demo.copy(target) | ||
failure_demo.copy(testdir.tmpdir.join(failure_demo.basename)) | ||
target = testdir.tmpdir.join(os.path.basename(failure_demo)) | ||
shutil.copy(failure_demo, target) | ||
result = testdir.runpytest(target, syspathinsert=True) | ||
result.stdout.fnmatch_lines(["*44 failed*"]) | ||
assert result.ret != 0 |