Closed sadielbartholomew closed 7 months ago
Hmm, noticing now that there are plenty of setup issues with the CI workflows, very likely due to it being out-of-date. I'll try to address those shortly. As for this PR, the results aren't useful so I'll merge straight away.
Trivial change so no review requested/required.
Quick one to fix some
doctest
failures for a full tests suite pass across supported Python 3.X versions. Notably there were a few failures due to the feature introduced in Python 3.10 which adds "Did you mean ..." suggestions to some error messages, such that Python 3.8 gives a shorterAttributeError
and in the affected cases:whereas e.g. Python 3.12 will show the extended message:
The ellipsis
...
marker indicates todoctest
any or no text at that location is acceptable and will ensure the tests pass for both message versions, and users can interpret it in the natural way as 'there may be further text after this', so it works for both machine and human.