Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Commite1e8533
Update `test_io` `_check_warn_on_dealloc` to use `self.` to dispatch todifferent I/O implementations.Update the `_pyio` implementation to match expected behavior, using thesame `_dealloc_warn` design as the C implementation uses to report thetopmost `__del__` object.The FileIO one now matches all the others, so can use IOBase. There wasa missing check on closing (self._fd must be valid), add that check(cherry picked from commit5b0e827)Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
1 parent046125e commite1e8533
File tree
3 files changed
+19
-6
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
3 files changed
+19
-6
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
| 416 | + | |
| 417 | + | |
| 418 | + | |
416 | 419 |
| |
417 | 420 |
| |
418 | 421 |
| |
| |||
859 | 862 |
| |
860 | 863 |
| |
861 | 864 |
| |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
862 | 869 |
| |
863 | 870 |
| |
864 | 871 |
| |
| |||
1599 | 1606 |
| |
1600 | 1607 |
| |
1601 | 1608 |
| |
1602 |
| - | |
| 1609 | + | |
1603 | 1610 |
| |
1604 | 1611 |
| |
1605 |
| - | |
| 1612 | + | |
1606 | 1613 |
| |
1607 |
| - | |
1608 | 1614 |
| |
1609 | 1615 |
| |
1610 | 1616 |
| |
| |||
1748 | 1754 |
| |
1749 | 1755 |
| |
1750 | 1756 |
| |
1751 |
| - | |
| 1757 | + | |
1752 | 1758 |
| |
1753 | 1759 |
| |
1754 | 1760 |
| |
| |||
2640 | 2646 |
| |
2641 | 2647 |
| |
2642 | 2648 |
| |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
2643 | 2653 |
| |
2644 | 2654 |
| |
2645 | 2655 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4386 | 4386 |
| |
4387 | 4387 |
| |
4388 | 4388 |
| |
4389 |
| - | |
| 4389 | + | |
4390 | 4390 |
| |
4391 | 4391 |
| |
4392 | 4392 |
| |
| |||
4415 | 4415 |
| |
4416 | 4416 |
| |
4417 | 4417 |
| |
4418 |
| - | |
| 4418 | + | |
4419 | 4419 |
| |
4420 | 4420 |
| |
4421 | 4421 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
0 commit comments
Comments
(0)