From e9ac3d291d05aa364f62750ae7b97387475fdfe5 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 31 May 2024 18:58:12 +0400 Subject: [PATCH] Fix: forgot to close TCP socket --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 3ee96dd..d454829 100644 --- a/main.py +++ b/main.py @@ -29,6 +29,9 @@ class TestTCP(TestCase): data = self.sock.recv(1024) self.assertEqual(data, b'OK') + def tearDown(self) -> None: + self.sock.close() + class TestHTTP(TestCase):