Commit 5b0e827
authored
Update `test_io` `_check_warn_on_dealloc` to use `self.` to dispatch to
different I/O implementations.
Update the `_pyio` implementation to match expected behavior, using the
same `_dealloc_warn` design as the C implementation uses to report the
topmost `__del__` object.
The FileIO one now matches all the others, so can use IOBase. There was
a missing check on closing (self._fd must be valid), add that check
1 parent 06eaf40 commit 5b0e827
File tree
3 files changed
+19
-6
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
3 files changed
+19
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
410 | 413 | | |
411 | 414 | | |
412 | 415 | | |
| |||
853 | 856 | | |
854 | 857 | | |
855 | 858 | | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
856 | 863 | | |
857 | 864 | | |
858 | 865 | | |
| |||
1601 | 1608 | | |
1602 | 1609 | | |
1603 | 1610 | | |
1604 | | - | |
| 1611 | + | |
1605 | 1612 | | |
1606 | 1613 | | |
1607 | | - | |
| 1614 | + | |
1608 | 1615 | | |
1609 | | - | |
1610 | 1616 | | |
1611 | 1617 | | |
1612 | 1618 | | |
| |||
1781 | 1787 | | |
1782 | 1788 | | |
1783 | 1789 | | |
1784 | | - | |
| 1790 | + | |
1785 | 1791 | | |
1786 | 1792 | | |
1787 | 1793 | | |
| |||
2690 | 2696 | | |
2691 | 2697 | | |
2692 | 2698 | | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
2693 | 2703 | | |
2694 | 2704 | | |
2695 | 2705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4417 | 4417 | | |
4418 | 4418 | | |
4419 | 4419 | | |
4420 | | - | |
| 4420 | + | |
4421 | 4421 | | |
4422 | 4422 | | |
4423 | 4423 | | |
| |||
4446 | 4446 | | |
4447 | 4447 | | |
4448 | 4448 | | |
4449 | | - | |
| 4449 | + | |
4450 | 4450 | | |
4451 | 4451 | | |
4452 | 4452 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments