Repository navigation
Commit 78027af
Neil Muller
Add explicit connection cleanup
Python 3.11 tweaked how the sqlite module worked, which
changed the implicit cleanup behavior, which can cause
problems on windows when temporary files are involved.
See the discussion in python/cpython#97641
The cursor juggling code in the database upgrade test implicitly
relied on this, so we need to tweak the logic so we explicitly
close the connection so the tests pass on Windows again.1 parent 342a8a5 commit 78027af
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | | - | |
| 1682 | + | |
| 1683 | + | |
1683 | 1684 | | |
1684 | 1685 | | |
1685 | 1686 | | |
| 1687 | + | |
1686 | 1688 | | |
1687 | 1689 | | |
1688 | 1690 | | |
| |||
1728 | 1730 | | |
1729 | 1731 | | |
1730 | 1732 | | |
| 1733 | + | |
| 1734 | + | |
1731 | 1735 | | |
1732 | 1736 | | |
1733 | 1737 | | |
1734 | | - | |
1735 | 1738 | | |
1736 | 1739 | | |
1737 | 1740 | | |
1738 | 1741 | | |
1739 | 1742 | | |
1740 | 1743 | | |
1741 | | - | |
| 1744 | + | |
| 1745 | + | |
1742 | 1746 | | |
1743 | 1747 | | |
1744 | 1748 | | |
| 1749 | + | |
1745 | 1750 | | |
1746 | 1751 | | |
1747 | 1752 | | |
| |||
0 commit comments