diff --git a/CHANGELOG.md b/CHANGELOG.md index e2d55be1109a30fa8b60c28dd149d589a595005d..6d82c6d30f965b85c37399d5f246d8cbade8ae5d 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 19efb0b4a9ca9696428bc90b9a9c018f6609e835..73027a1b053585622dd8680ab1b9288cbd743290 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 92601c5f2b0a8bc4e9d8faded5a2d802ac52cbf2..c2cb8c1df211c7609c3d96c8cc11a0d0c0feac61 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 70dc6d1b8197b903f1c709fb0a27ef611557d493..14894007d4f682ffa406f5b7b989d86d9bc2b2c4 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 6cc73b10896b6949db1eac7a573fe957dea65b45..0000000000000000000000000000000000000000 --- 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)