(self)
| 502 | self.assertStartsWith(str(vi), f'{vi.major}.{vi.minor}') |
| 503 | |
| 504 | def test_embedded_null(self): |
| 505 | widget = tkinter.Entry(self.root) |
| 506 | widget.insert(0, 'abc\0def') # ASCII-only |
| 507 | widget.selection_range(0, 'end') |
| 508 | self.assertEqual(widget.selection_get(), 'abc\x00def') |
| 509 | widget.insert(0, '\u20ac\0') # non-ASCII |
| 510 | widget.selection_range(0, 'end') |
| 511 | self.assertEqual(widget.selection_get(), '\u20ac\0abc\x00def') |
| 512 | |
| 513 | def test_iterable_protocol(self): |
| 514 | widget = tkinter.Entry(self.root) |
nothing calls this directly
no test coverage detected