[New-bugs-announce] [issue32964] Reuse a testing implementation of the path protocol in tests

Serhiy Storchaka report at bugs.python.org
Tue Feb 27 14:40:07 EST 2018


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

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.

----------
components: Tests
messages: 313018
nosy: brett.cannon, ezio.melotti, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Reuse a testing implementation of the path protocol in tests
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32964>
_______________________________________


More information about the New-bugs-announce mailing list