This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Reuse a testing implementation of the path protocol in tests
Type: enhancement Stage: resolved
Components: Tests Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, ezio.melotti, miss-islington, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2018-02-27 19:40 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5930 merged serhiy.storchaka, 2018-02-27 19:42
PR 5957 merged miss-islington, 2018-03-02 09:54
PR 5958 merged serhiy.storchaka, 2018-03-02 10:07
Messages (5)
msg313018 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-02-27 19:40
In a number of tests there are simple implementations of the path protocol. Unlike to pathlib.Path they implement only necessary minimum of methods. The proposed PR moves this implementation into test.support. It also fixes some misuses of it.

I have named it SimplePath. Are there better ideas? PathLike was rejected due to possible confusion with os.PathLike.
msg313067 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2018-02-28 19:56
FakePath? Otherwise SimplePath seems as good a name as any other one.
msg313128 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-03-02 09:53
New changeset b21d155f57d284aecf9092a9bd24258293965c2f by Serhiy Storchaka in branch 'master':
bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)
https://github.com/python/cpython/commit/b21d155f57d284aecf9092a9bd24258293965c2f
msg313129 - (view) Author: miss-islington (miss-islington) Date: 2018-03-02 10:17
New changeset a13b65422a1078104e9f53ad41945ea380a80798 by Miss Islington (bot) in branch '3.7':
bpo-32964: Reuse a testing implementation of the path protocol in tests. (GH-5930)
https://github.com/python/cpython/commit/a13b65422a1078104e9f53ad41945ea380a80798
msg313186 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-03-03 12:19
New changeset fbdd075c64a5229dfa26632cf1b2cf2361dc5003 by Serhiy Storchaka in branch '3.6':
[3.6] bpo-32964: Reuse a testing implementation of the path protocol in tests. (GH-5930). (GH-5958)
https://github.com/python/cpython/commit/fbdd075c64a5229dfa26632cf1b2cf2361dc5003
History
Date User Action Args
2022-04-11 14:58:58adminsetgithub: 77145
2018-03-03 12:19:54serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-03-03 12:19:32serhiy.storchakasetmessages: + msg313186
2018-03-02 10:17:56miss-islingtonsetnosy: + miss-islington
messages: + msg313129
2018-03-02 10:07:12serhiy.storchakasetpull_requests: + pull_request5725
2018-03-02 09:54:11miss-islingtonsetpull_requests: + pull_request5724
2018-03-02 09:53:59serhiy.storchakasetmessages: + msg313128
2018-02-28 19:56:58brett.cannonsetmessages: + msg313067
2018-02-27 19:42:16serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request5702
2018-02-27 19:40:07serhiy.storchakacreate