Permalink
Browse files

removed a wrong test

  • Loading branch information...
1 parent bcd12dd commit 2baf1400fbd6fc792a1ab143a42c0a874ad9f41f quantmind committed Sep 21, 2012
Showing with 7 additions and 19 deletions.
  1. +1 −1 CHANGELOG.rst
  2. +5 −10 tests/regression/dispatch/dispatcher.py
  3. +1 −8 tests/regression/redis/pool.py
View
@@ -4,7 +4,7 @@ Development
===============================
* Several fixes in the documentation.
* Added a *prefixed* redis client in :class:`stdnet.lib.redis.PrefixedRedis`.
-* **601 regression tests** with **92%** coverage.
+* **600 regression tests** with **92%** coverage.
Ver. 0.7c6 - 2012 Sep 10
===============================
@@ -1,19 +1,14 @@
import gc
-import sys
from stdnet.utils.dispatch import Signal
from stdnet import test
-if sys.platform.startswith('java'):
- def garbage_collect():
- """Run the garbage collector and wait a bit to let it do his work"""
- import time
- gc.collect()
- time.sleep(0.1)
-else:
- def garbage_collect():
- gc.collect()
+def garbage_collect():
+ """Run the garbage collector and wait a bit to let it do his work"""
+ import time
+ gc.collect()
+ time.sleep(0.1)
def receiver_1_arg(val, **kwargs):
return val
@@ -86,17 +86,10 @@ def testFailWriteAll(self):
self.assertEqual(request.tried, 1)
self.assertEqual(request.connection, None)
- def testFailRead(self):
- request = self.client.request('PING')
- request.connection._sock = read_mock()
- self.assertRaises(socket.error, request.execute)
- self.assertEqual(request.tried, 1)
- self.assertEqual(request.connection, None)
-
def testFailClose(self):
client = self.client.clone()
client.parse_response = mock.MagicMock(return_value=RuntimeError())
request = client.request('PING')
self.assertRaises(RuntimeError, request.execute)
self.assertEqual(request.tried, 1)
- self.assertEqual(request.connection.sock, None)
+ self.assertEqual(request.connection, None)

0 comments on commit 2baf140

Please sign in to comment.