Skip to content
Snippets Groups Projects
Commit 1c3120e1 authored by Matt Wala's avatar Matt Wala
Browse files

Test empty cache.

parent 40c636c5
No related branches found
No related tags found
1 merge request!4PersistentDict cleanup; create WriteOncePersistentDict
...@@ -176,10 +176,13 @@ def test_persistent_dict_clear(): ...@@ -176,10 +176,13 @@ def test_persistent_dict_clear():
shutil.rmtree(tmpdir) shutil.rmtree(tmpdir)
def test_write_once_persistent_dict_storage_and_lookup(): @pytest.mark.parametrize("in_mem_cache_size", (0, 256))
def test_write_once_persistent_dict_storage_and_lookup(in_mem_cache_size):
try: try:
tmpdir = tempfile.mkdtemp() tmpdir = tempfile.mkdtemp()
pdict = WriteOncePersistentDict("pytools-test", container_dir=tmpdir) pdict = WriteOncePersistentDict(
"pytools-test", container_dir=tmpdir,
in_mem_cache_size=in_mem_cache_size)
# check lookup # check lookup
pdict[0] = 1 pdict[0] = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment