mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
initial commit, setting up for py 2 & 3
This commit is contained in:
parent
e880deddb6
commit
043771ab25
20
tests/test_dump-anydbm.py
Normal file
20
tests/test_dump-anydbm.py
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
#from warcprox.bin import dump-anydbm
|
||||
import pytest
|
||||
|
||||
# will try as python 3 then default to python 2 modules
|
||||
try:
|
||||
import dbm
|
||||
ndbm = dbm.ndbm
|
||||
gdbm = dbm.gdbm
|
||||
dumb = dbm.dumb
|
||||
whichdb = dbm.whichdb
|
||||
except:
|
||||
import dbm as ndbm
|
||||
import gdbm
|
||||
import dumbdbm as dumb
|
||||
from whichdb import whichdb
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user