Commit 3b5f5e1
committed
Fix ResourceWarning when running tests
supervisor/supervisor/http.py:581: ResourceWarning: unclosed <socket.socket fd=14, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
used = self.checkused(socketname)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Unlinking stale socket /var/folders/4l/30_vf63152bflw8hnvyvnw_00000gn/T/tmpbpxj02zu
In 1849019, uses of tempfile.mktemp() were replaced
with tempfile.NamedTemporaryFile(). Some tests did not run as intended afterward
because they expected the file to not exist on disk.1 parent e3c3ff9 commit 3b5f5e1
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
624 | 624 | | |
| 625 | + | |
| 626 | + | |
625 | 627 | | |
626 | 628 | | |
627 | 629 | | |
| |||
648 | 650 | | |
649 | 651 | | |
650 | 652 | | |
651 | | - | |
| 653 | + | |
652 | 654 | | |
| 655 | + | |
| 656 | + | |
653 | 657 | | |
654 | 658 | | |
655 | 659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1641 | 1641 | | |
1642 | 1642 | | |
1643 | 1643 | | |
1644 | | - | |
| 1644 | + | |
1645 | 1645 | | |
| 1646 | + | |
| 1647 | + | |
1646 | 1648 | | |
1647 | 1649 | | |
1648 | 1650 | | |
| |||
0 commit comments