From 8be98a22a860335848dab271a13372b678830084 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 17 Aug 2025 18:35:28 -0700 Subject: [PATCH] Python 3 compatibility fixes --- pilight/test/test_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pilight/test/test_client.py b/pilight/test/test_client.py index a39d36e..c57fcae 100644 --- a/pilight/test/test_client.py +++ b/pilight/test/test_client.py @@ -5,7 +5,7 @@ import unittest import time -from mock import patch, call +from unittest.mock import patch, call try: from StringIO import StringIO # Python 2 @@ -125,5 +125,5 @@ def test_no_callback(self): pilight_client.start() time.sleep(1) # Give time to set thread status - self.assertFalse(pilight_client.isAlive()) + self.assertFalse(pilight_client.is_alive()) pilight_client.stop()