Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
nospam
Commits
d8d810c7
Commit
d8d810c7
authored
Jan 30, 2013
by
ale
Browse files
made dbshelve test conditional on bsddb3 presence
parent
346f57cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
nospam/tests/test_dbshelve.py
nospam/tests/test_dbshelve.py
+10
-2
No files found.
nospam/tests/test_dbshelve.py
View file @
d8d810c7
import
os
import
shutil
import
tempfile
import
unittest
from
bsddb3
import
db
# Make the test conditional on successful bsddb3 import.
try
:
from
bsddb3
import
db
except
ImportError
:
from
nose.exc
import
SkipTest
raise
SkipTest
(
'LevelDB not found'
)
from
nospam.dbshelve
import
dbshelve
from
nospam.dbshelve
import
connect_db
import
os
class
TestDbshelve
(
unittest
.
TestCase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment