Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Aug 21, 2024
1 parent ec57438 commit be11ba3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions ostap/io/tests/test_io_dbases.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ def the_name ():

# ============================================================================
try :
from ostap.io.lmdbdict import LmdbDict
import lbdb
from ostap.io.lmdbdict import lbdb, LmdbDict
item = 'LmdbDict' , CleanUp.tempdir ( prefix = 'ostap-LMDB-' ) , LmdbDict
dbases.append ( item )
dbases.append ( item )
except ImportError:
logger.warning ( 'LmdbDict is not accessible!' )

# ============================================================================
try :
import berkeleydb
from ostap.io.dbase import berkeleydb_open
item = 'BerkeleyDB' , CleanUp.tempfile ( prefix = 'ostap-BerkeleyDB-' , suffix = '.db' ) , berkeleydb_open
dbases.append ( item )
Expand All @@ -52,7 +54,8 @@ def the_name ():

# ============================================================================
try :
from ostap.io.dbase import bdsdb3_open
import bsddb3
from ostap.io.dbase import bsddb3_open
item = 'BSDDB3' , CleanUp.tempfile ( prefix = 'ostap-BSDDB3-' , suffix = '.db' ) , bsbdb3_open
dbases.append ( item )
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion ostap/io/tests/test_io_shelves.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
else :
lzshelve = None
# =============================================================================
if (3,6) <= python_version :
if (3,6) <= python_version :
import ostap.io.zstshelve as zstshelve
try :
import zstandard
Expand Down

0 comments on commit be11ba3

Please sign in to comment.