Permalink
Browse files

small fix for tests

  • Loading branch information...
1 parent 12008d2 commit 09f59754d6e862ef1fa9f67d2107faba37e246e6 @twonds committed Apr 23, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/test_basic.py
View
@@ -159,7 +159,8 @@ def tearDown(self):
def cbStopListening(result=None):
self.root = None
self.site = None
- self.proxy.factory.stopFactory()
+ if hasattr(self.proxy, 'factory'):
+ self.proxy.factory.stopFactory()
self.server_factory.stopFactory()
self.server = None
self._cleanPending()

0 comments on commit 09f5975

Please sign in to comment.