[3.13] gh-141314: Fix TextIOWrapper.tell() assertion failure with standalone carriage return (GH-141331) by mohsinm-dev · Pull Request #141452 · python/cpython

Conversation

…th standalone carriage return (pythonGH-141331)

The assertion was checking wrong variable (skip_back vs skip_bytes).
(cherry picked from commit af80fac)

Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>

@python-cla-bot

All commit authors signed the Contributor License Agreement.

CLA signed

@efimov-mikhail efimov-mikhail changed the title [3.13] gh-141314: Fix TextIOWrapper.tell() assertion failure with sta… [3.13] gh-141314: Fix TextIOWrapper.tell() assertion failure with standalone carriage return (GH-141331)

Nov 12, 2025

efimov-mikhail