Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Properly scope DB lifetime in iterator test

  • Loading branch information...
commit 726ad95b348d9bc17d60f291ae4c3302726b8ee4 1 parent 86728dc
Wouter Bolsterlee authored

Showing 1 changed file with 12 additions and 12 deletions. Show diff stats Hide diff stats

  1. +12 12 test/test_plyvel.py
24 test/test_plyvel.py
@@ -316,22 +316,22 @@ def test_iterator_return():
316 316 with tmp_db('iteration') as db:
317 317 db.put(b'key', b'value')
318 318
319   - for key, value in db:
320   - assert_equal(key, b'key')
321   - assert_equal(value, b'value')
  319 + for key, value in db:
  320 + assert_equal(key, b'key')
  321 + assert_equal(value, b'value')
322 322
323   - for key, value in db.iterator():
324   - assert_equal(key, b'key')
325   - assert_equal(value, b'value')
  323 + for key, value in db.iterator():
  324 + assert_equal(key, b'key')
  325 + assert_equal(value, b'value')
326 326
327   - for key in db.iterator(include_value=False):
328   - assert_equal(key, b'key')
  327 + for key in db.iterator(include_value=False):
  328 + assert_equal(key, b'key')
329 329
330   - for value in db.iterator(include_key=False):
331   - assert_equal(value, b'value')
  330 + for value in db.iterator(include_key=False):
  331 + assert_equal(value, b'value')
332 332
333   - for ret in db.iterator(include_key=False, include_value=False):
334   - assert_is_none(ret)
  333 + for ret in db.iterator(include_key=False, include_value=False):
  334 + assert_is_none(ret)
335 335
336 336
337 337 @nottest

0 comments on commit 726ad95

Please sign in to comment.
Something went wrong with that request. Please try again.