Skip to content
Snippets Groups Projects
Unverified Commit d615f6bd authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

remove dem extra slots

parent 1cc5d9e5
No related branches found
No related tags found
No related merge requests found
Pipeline #62147 passed with stages
in 1 minute and 43 seconds
...@@ -8,4 +8,3 @@ Since v1.3.2 they'll be put here and in release description. ...@@ -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 * added support for infinite (None) timeouts during start
* stress tests will run for 120 seconds now * stress tests will run for 120 seconds now
* stress tests will be harder, and use more queues * stress tests will be harder, and use more queues
* added extra __slots__ in Declarer
\ No newline at end of file
__version__ = '1.3.2b4' __version__ = '1.3.2b5'
...@@ -184,7 +184,6 @@ class Declarer(Channeler, Synchronized): ...@@ -184,7 +184,6 @@ class Declarer(Channeler, Synchronized):
This also maintains a list of declared queues/exchanges, and redeclares them on each reconnect. 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): def __init__(self, cluster):
""" """
......
...@@ -251,7 +251,6 @@ class Synchronized(object): ...@@ -251,7 +251,6 @@ class Synchronized(object):
... ...
""" """
__slots__ = ('_monitor_lock', )
def __init__(self): def __init__(self):
self._monitor_lock = threading.Lock() self._monitor_lock = threading.Lock()
......
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment