[issue23097] unittest can unnecessarily modify sys.path (and with the wrong case)

Charlie Dyson report at bugs.python.org
Tue Oct 2 05:27:03 EDT 2018


Charlie Dyson <charlie at charliedyson.net> added the comment:

As an aside, should that be sys.path.insert(1, X)? As 0 has a special meaning (I've often thought this is a slightly odd convention).

Another aside: I noticed this because I was looking to write a module finder, and thought I could extract one out of this function. It would be nice to have a module-crawler function, and write discover() in terms of that.

----------
nosy: +cdyson37

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


More information about the Python-bugs-list mailing list