Skip to content

Commit

Permalink
Fix testing unknown commands on Python 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 26, 2017
1 parent 1971186 commit 7c6a6de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/zope/server/linereceiver/tests/test_lineserverchannel.py
Expand Up @@ -87,6 +87,12 @@ def __repr__(self):
def test_unknown_command(self):
class Chunnel(Channel):
authenticated = True
# Python 3.4 includes a __getattr__ in asyncore.dispatcher
# that does `gettar(self.socket, name)`, but self.socket is only
# set by the constructor in certain circumstances---and we don't
# call the constructor. This leads to a recursion error unless
# we make that attribute available here.
socket = None


command = LineCommandParser(None)
Expand Down

0 comments on commit 7c6a6de

Please sign in to comment.