From d615f6bdb115a9caeb34b40685ea7347ad8cac53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Mon, 2 Sep 2024 16:23:21 +0200 Subject: [PATCH] remove dem extra slots --- CHANGELOG.md | 1 - coolamqp/__init__.py | 2 +- coolamqp/attaches/declarer.py | 1 - coolamqp/attaches/utils.py | 1 - tests/test_attaches/test_declarer.py | 13 ------------- 5 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 tests/test_attaches/test_declarer.py diff --git a/CHANGELOG.md b/CHANGELOG.md index e2d55be..6d82c6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,4 +8,3 @@ Since v1.3.2 they'll be put here and in release description. * added support for infinite (None) timeouts during start * stress tests will run for 120 seconds now * stress tests will be harder, and use more queues -* added extra __slots__ in Declarer \ No newline at end of file diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py index 19efb0b..73027a1 100644 --- a/coolamqp/__init__.py +++ b/coolamqp/__init__.py @@ -1 +1 @@ -__version__ = '1.3.2b4' +__version__ = '1.3.2b5' diff --git a/coolamqp/attaches/declarer.py b/coolamqp/attaches/declarer.py index 92601c5..c2cb8c1 100644 --- a/coolamqp/attaches/declarer.py +++ b/coolamqp/attaches/declarer.py @@ -184,7 +184,6 @@ class Declarer(Channeler, Synchronized): This also maintains a list of declared queues/exchanges, and redeclares them on each reconnect. """ - __slots__ = ('in_process', 'on_discard', 'left_to_declare', 'declared', 'cluster') def __init__(self, cluster): """ diff --git a/coolamqp/attaches/utils.py b/coolamqp/attaches/utils.py index 70dc6d1..1489400 100644 --- a/coolamqp/attaches/utils.py +++ b/coolamqp/attaches/utils.py @@ -251,7 +251,6 @@ class Synchronized(object): ... """ - __slots__ = ('_monitor_lock', ) def __init__(self): self._monitor_lock = threading.Lock() diff --git a/tests/test_attaches/test_declarer.py b/tests/test_attaches/test_declarer.py deleted file mode 100644 index 6cc73b1..0000000 --- a/tests/test_attaches/test_declarer.py +++ /dev/null @@ -1,13 +0,0 @@ -import unittest - -from coolamqp.attaches import Declarer - - -class TestDeclarer(unittest.TestCase): - def test_declarer_slots(self): - """Test that __slots__ are respected""" - d = Declarer(None) - def add_argument(): - d.extra_argument = False - - self.assertRaises(AttributeError, add_argument) -- GitLab