Skip to content

Commit 8c5cdb9

Browse files
authored
Merge pull request #174 from maresb/master
Replace path.py with path
2 parents ede39f7 + 71b015a commit 8c5cdb9

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

pytest-git/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here's a noddy test case that shows it working:
2525
```python
2626
def test_git_repo(git_repo):
2727
# The fixture derives from `workspace` in `pytest-shutil`, so they contain
28-
# a handle to the path.py path object (see https://pathpy.readthedocs.io/)
28+
# a handle to the path `path` object (see https://path.readthedocs.io/)
2929
path = git_repo.workspace
3030
file = path / 'hello.txt'
3131
file.write_text('hello world!')

pytest-pyramid-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Here's a noddy test case showing the main functionality:
5151
# POST a document to the server.
5252
assert pyramid_server.post('/login', 'guest:password123').response_code == 200
5353

54-
# ``path.py`` path object to the running config file
54+
# path ``path`` object to the running config file (see https://path.readthedocs.io/)
5555
assert pyramid_server.working_config.endswith('testing.ini')
5656
```
5757

pytest-server-fixtures/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ All test fixtures share the following properties at runtime:
115115
| `hostname` | Hostname that server is listening on
116116
| `port` | Port number that the server is listening on
117117
| `dead` | True/False: am I dead yet?
118-
| `workspace` | `path.py` object for the temporary directory the server is running out of
118+
| `workspace` | [`path`](https://path.readthedocs.io/) object for the temporary directory the server is running out of
119119

120120
## MongoDB
121121

pytest-shutil/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The workspace fixture is simply a temporary directory at function-scope with a f
2323
pytest_plugins = ['pytest_shutil']
2424

2525
def test_something(workspace):
26-
# Workspaces contain a handle to the path.py path object (see https://pathpy.readthedocs.io/)
26+
# Workspaces contain a handle to the path `path` object (see https://path.readthedocs.io/)
2727
path = workspace.workspace
2828
script = path / 'hello.sh'
2929
script.write_text('#!/bin/sh\n echo hello world!')

pytest-shutil/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
'execnet',
2626
'contextlib2;python_version<"3"',
2727
'pytest',
28-
'path.py',
28+
'path; python_version >= "3.5"',
29+
'path.py; python_version < "3.5",
2930
'mock',
3031
'termcolor'
3132
]

pytest-svn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here's a noddy test case that shows it working:
2424
```python
2525
def test_svn_repo(svn_repo):
2626
# The fixture derives from `workspace` in `pytest-shutil`, so they contain
27-
# a handle to the path.py path object (see https://pathpy.readthedocs.io/)
27+
# a handle to the path `path` object (see https://pathpy.readthedocs.io/)
2828
path = svn_repo.workspace
2929
file = path / 'hello.txt'
3030
file.write_text('hello world!')

0 commit comments

Comments
 (0)