Terry J. Reedy added the comment: The use of .__new__ was cute. Unfortunately, it did not backport to 2.7 because tkinter classes were never upgraded from old to new in 2.7 and old-style classes do not have .__new__. So I monkeypatched the module instead, which is a but clumbsier than patching the instance. Though not every detail is tested, coverage is essentialy 100% and the human text covers the visual details.
---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed Added file: http://bugs.python.org/file35488/test_textview-18910.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18910> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com