From c92af978d7fd64c93c5b6d4f67e113b067ebcba5 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 20 Dec 2023 16:15:52 +0200 Subject: [PATCH] Get rid of `six` test dependency Signed-off-by: Aarni Koskela --- setup.py | 2 +- tests/test_websocket_integration.py | 2 +- tests/testsupport/broker.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index b2172c3a..f00ceb43 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ readme = readme_file.read().decode('utf-8') requirements = [] -test_requirements = ['pytest', 'pylama', 'six'] +test_requirements = ['pytest', 'pylama'] needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) setup_requirements = ['pytest-runner'] if needs_pytest else [] extra_requirements = {'proxy': ['PySocks']} diff --git a/tests/test_websocket_integration.py b/tests/test_websocket_integration.py index 86388dc5..0d623ca9 100644 --- a/tests/test_websocket_integration.py +++ b/tests/test_websocket_integration.py @@ -1,10 +1,10 @@ import base64 import hashlib import re +import socketserver from collections import OrderedDict import pytest -from six.moves import socketserver from testsupport.broker import fake_websocket_broker import paho.mqtt.client as client diff --git a/tests/testsupport/broker.py b/tests/testsupport/broker.py index 92b80451..b901a6df 100644 --- a/tests/testsupport/broker.py +++ b/tests/testsupport/broker.py @@ -1,9 +1,9 @@ import contextlib import socket +import socketserver import threading import pytest -from six.moves import socketserver class FakeBroker: