Commit 6498f26
committed
Fix test to use infinite_recursion pattern and catch RecursionError
- Use support.infinite_recursion() context manager
- Catch RecursionError explicitly instead of all exceptions
- Fix import order with two blank lines after from imports
- Remove extra blank lines in _json.c
- Use Py_DECREF instead of Py_XDECREF1 parent 5359ecd commit 6498f26
2 files changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1646 | 1646 | | |
1647 | 1647 | | |
1648 | 1648 | | |
1649 | | - | |
1650 | 1649 | | |
1651 | 1650 | | |
1652 | 1651 | | |
1653 | | - | |
| 1652 | + | |
1654 | 1653 | | |
1655 | 1654 | | |
1656 | 1655 | | |
1657 | 1656 | | |
1658 | 1657 | | |
1659 | 1658 | | |
1660 | | - | |
1661 | 1659 | | |
1662 | 1660 | | |
1663 | | - | |
| 1661 | + | |
1664 | 1662 | | |
1665 | 1663 | | |
1666 | 1664 | | |
| |||
0 commit comments