Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
zpz committed Aug 14, 2021
1 parent f8d5396 commit e370ee7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Release 0.6.1
=============

- Fix related to finalizing the object in __del__.
- Use `upathlib.serializer`.


Release 0.5.7
Expand Down
8 changes: 4 additions & 4 deletions tests/test_biglist.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_numbers():


def test_view():
bl = Biglist.new()
bl = Biglist.new(storage_format='json')
bl.extend(range(20))
bl.flush()
datalv = bl.view()
Expand Down Expand Up @@ -64,7 +64,7 @@ def test_view():


def test_fileview():
bl = Biglist.new(batch_size=4)
bl = Biglist.new(batch_size=4, storage_format='pickle')
bl.extend(range(22))
bl.flush()
assert len(bl.get_data_files()) == 6
Expand Down Expand Up @@ -94,7 +94,7 @@ def add_to_biglist(path, prefix, length):

def test_multi_appenders():
sets = [('a', 10), ('b', 8), ('c', 22), ('d', 17), ('e', 24)]
bl = Biglist.new(batch_size=6, keep_files=True)
bl = Biglist.new(batch_size=6, keep_files=True, storage_format='orjson-z')
# print('bl at', bl.path)

prefix, ll = sets[0]
Expand Down Expand Up @@ -131,7 +131,7 @@ def iter_file(path, task_id):


def test_file_views():
bl = Biglist.new(batch_size=5)
bl = Biglist.new(batch_size=5, storage_format='pickle-z')
nn = 567
bl.extend(range(nn))
bl.flush()
Expand Down

0 comments on commit e370ee7

Please sign in to comment.