Skip to content

Commit

Permalink
Coverage for test_zombies.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 26, 2017
1 parent 0627b81 commit 8c2dbeb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/zope/server/tests/test_zombies.py
Expand Up @@ -14,11 +14,9 @@
"""Tests for zope.server.serverchannelbase zombie logic
"""
import doctest
import unittest


class FakeSocket:
data = b''
class FakeSocket(object):
data = b''
setblocking = lambda *_: None
close = lambda *_: None

Expand All @@ -32,8 +30,7 @@ def getpeername(self):
return ('localhost', self.no)

def send(self, data):
self.data += data
return len(data)
raise AssertionError("Never called")

def recv(self, buflen):
return b'data'
Expand Down Expand Up @@ -146,7 +143,3 @@ def zombies_test():

def test_suite():
return doctest.DocTestSuite()


if __name__ == '__main__':
unittest.main(defaultTest='test_suite')

0 comments on commit 8c2dbeb

Please sign in to comment.