fakefs: All fail invocations need to coerce pathnames to strings
Behavior we expect to see: useful error messages, e.g. file doesn’t exist
Behavior we see:
TypeError:
no implicit conversion of FakeFS::Pathname into String
Where we see it: Basically anywhere that there is an invocation of fail
that passes an object that could be a Pathname, which is a lot of places. These fail
invocations are not collected in one location at all.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (13 by maintainers)
Commits related to this issue
- Fixes #391: explicitly transform Pathname instances in strings. — committed to basvk/fakefs by basvk 5 years ago
- See #391. Changed tests to both test with String paths and Pathnames — committed to basvk/fakefs by basvk 5 years ago
looks good, same approach, different flavor 😃
I haven’t forgotten about this, just been busy.