You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doctest._SpoofOut.truncate() is passing None to seek() when the size argument is not given. #102967
doctest._SpoofOut.truncate() is passing None to seek() when the size argument is not given.
You must pass an integer to seek.
So, if no size argument is given then simply truncate from the current position.
@arhadthedev, the tests label is for issues concerning bugs in CPython's internal test suite (usually these are files found in the Lib/test directory). This is a bug report concerning the doctest module, which is part of the standard library, not part of CPython's internal test suite.
@AlexWaygood Thank you for clarification! I've thought the label is about the whole testing infrastructure some parts of which happen to be outside Lib/test for legacy reasons.
Activity
AlexWaygood commentedon Mar 23, 2023
@arhadthedev, the
testslabel is for issues concerning bugs in CPython's internal test suite (usually these are files found in theLib/testdirectory). This is a bug report concerning thedoctestmodule, which is part of the standard library, not part of CPython's internal test suite.arhadthedev commentedon Mar 24, 2023
@AlexWaygood Thank you for clarification! I've thought the label is about the whole testing infrastructure some parts of which happen to be outside
Lib/testfor legacy reasons.gh-102967: Don't pass None to seek(), simply truncate from the curren…
[3.13] gh-102967: Don't pass None to seek(), simply truncate from the…
[3.14] gh-102967: Don't pass None to seek(), simply truncate from the…
pythongh-102967: Don't pass None to seek(), simply truncate from the …
[3.15] gh-102967: Don't pass None to seek(), simply truncate from the…