|
1 | 1 | import atexit
|
2 |
| -import os |
3 | 2 | import sys
|
4 | 3 | import pickle
|
5 | 4 | import shutil
|
|
75 | 74 | from zarr.util import buffer_size
|
76 | 75 | from zarr.tests.util import (
|
77 | 76 | abs_container,
|
78 |
| - have_bsddb3, |
79 | 77 | have_fsspec,
|
80 | 78 | have_lmdb,
|
81 | 79 | have_sqlite3,
|
@@ -2046,20 +2044,6 @@ def test_nbytes_stored(self):
|
2046 | 2044 | pass # not implemented
|
2047 | 2045 |
|
2048 | 2046 |
|
2049 |
| -@pytest.mark.skipif(have_bsddb3 is False, reason="needs bsddb3") |
2050 |
| -class TestArrayWithDBMStoreBerkeleyDB(TestArray): |
2051 |
| - def create_store(self): |
2052 |
| - import bsddb3 |
2053 |
| - |
2054 |
| - path = mktemp(suffix=".dbm") |
2055 |
| - atexit.register(os.remove, path) |
2056 |
| - store = DBMStore(path, flag="n", open=bsddb3.btopen) |
2057 |
| - return store |
2058 |
| - |
2059 |
| - def test_nbytes_stored(self): |
2060 |
| - pass # not implemented |
2061 |
| - |
2062 |
| - |
2063 | 2047 | @pytest.mark.skipif(have_lmdb is False, reason="needs lmdb")
|
2064 | 2048 | class TestArrayWithLMDBStore(TestArray):
|
2065 | 2049 | def create_store(self):
|
@@ -2767,21 +2751,6 @@ def test_nbytes_stored(self):
|
2767 | 2751 | pass # not implemented
|
2768 | 2752 |
|
2769 | 2753 |
|
2770 |
| -@pytest.mark.skipif(not v3_api_available, reason="V3 is disabled") |
2771 |
| -@pytest.mark.skipif(have_bsddb3 is False, reason="needs bsddb3") |
2772 |
| -class TestArrayWithDBMStoreV3BerkeleyDB(TestArrayV3): |
2773 |
| - def create_store(self) -> DBMStoreV3: |
2774 |
| - import bsddb3 |
2775 |
| - |
2776 |
| - path = mktemp(suffix=".dbm") |
2777 |
| - atexit.register(os.remove, path) |
2778 |
| - store = DBMStoreV3(path, flag="n", open=bsddb3.btopen) |
2779 |
| - return store |
2780 |
| - |
2781 |
| - def test_nbytes_stored(self): |
2782 |
| - pass # not implemented |
2783 |
| - |
2784 |
| - |
2785 | 2754 | @pytest.mark.skipif(not v3_api_available, reason="V3 is disabled")
|
2786 | 2755 | @pytest.mark.skipif(have_lmdb is False, reason="needs lmdb")
|
2787 | 2756 | class TestArrayWithLMDBStoreV3(TestArrayV3):
|
|
0 commit comments