Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
drop reconnecting_test; a bits of tests cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
popravich committed Jun 22, 2016
1 parent 742b7f9 commit fda28de
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 48 deletions.
5 changes: 3 additions & 2 deletions tests/connection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ def test_close_connection__tcp(create_connection, loop, server):

conn = loop.run_until_complete(create_connection(
server.tcp_address, loop=loop))
conn.close()
fut = None
with pytest.raises(ConnectionClosedError):
conn.close()
fut = conn.select(1)
loop.run_until_complete(fut)
assert fut is None

conn = loop.run_until_complete(create_connection(
server.tcp_address, loop=loop))
Expand Down
2 changes: 0 additions & 2 deletions tests/hash_commands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ def test_hvals(redis):
@pytest.mark.run_loop
def test_hscan(redis):
key = b'key:hscan'
for k in (yield from redis.keys(key+b'*')):
redis.delete(k)
# setup initial values 3 "field:foo:*" items and 7 "field:bar:*" items
for i in range(1, 11):
foo_or_bar = 'bar' if i % 3 else 'foo'
Expand Down
42 changes: 0 additions & 42 deletions tests/reconnect_test.py

This file was deleted.

2 changes: 0 additions & 2 deletions tests/set_commands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ def test_sunionstore(redis):
@pytest.mark.run_loop
def test_sscan(redis):
key = b'key:sscan'
for k in (yield from redis.keys(key+b'*')):
redis.delete(k)
for i in range(1, 11):
foo_or_bar = 'bar' if i % 3 else 'foo'
member = 'member:{}:{}'.format(foo_or_bar, i).encode('utf-8')
Expand Down

0 comments on commit fda28de

Please sign in to comment.