Skip to content

Commit 664bead

Browse files
Line too long
1 parent e759b29 commit 664bead

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_streaming_cache.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@ def test_partial_read():
7474
def test_read_handles_are_independant():
7575
with closing(ExampleCache()) as cache:
7676
put(cache, 'foo', b'123')
77-
with closing(cache.open_read('foo')) as r0, closing(cache.open_read('foo')) as r1:
77+
with closing(cache.open_read('foo')) as r0,\
78+
closing(cache.open_read('foo')) as r1:
7879
assert r0.read(2) == b'12'
7980
assert r1.read(1) == b'1'
8081
assert r0.read(1) == b'3'
8182
assert r1.read(2) == b'23'
83+
84+
85+
def test_key_is_not_added_until_commit_is_called():
86+
with closing(ExampleCache()) as cache:

0 commit comments

Comments
 (0)