Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
BTrees
Commits
322c019b
Commit
322c019b
authored
Apr 15, 2016
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38 from zopefoundation/show-skipped-tests
Use unittest.skip to skip tests
parents
4e77e86b
a9303aa2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
BTrees/tests/common.py
BTrees/tests/common.py
+12
-15
No files found.
BTrees/tests/common.py
View file @
322c019b
...
...
@@ -13,33 +13,30 @@
##############################################################################
import
platform
from
unittest
import
skip
def
_skip_wo_ZODB
(
test_method
):
#pragma NO
COVER
def
_skip_wo_ZODB
(
test_method
):
# pragma: no
COVER
try
:
import
ZODB
import
ZODB
# noqa
except
ImportError
:
# skip this test if ZODB is not available
def
_dummy
(
*
args
):
pass
return
_dummy
return
skip
(
"ZODB not available"
)(
test_method
)
else
:
return
test_method
def
_skip_under_Py3k
(
test_method
):
#pragma NO COVER
def
_skip_under_Py3k
(
test_method
):
# pragma: no COVER
try
:
unicode
except
NameError
:
# skip this test
def
_dummy
(
*
args
):
pass
return
_dummy
return
skip
(
"Python 3"
)(
test_method
)
else
:
return
test_method
def
_skip_on_32_bits
(
test_method
):
#pragma NO COVER
def
_skip_on_32_bits
(
test_method
):
# pragma: no COVER
if
platform
.
architecture
()[
0
]
==
'32bit'
:
def
_dummy
(
*
args
):
pass
return
_dummy
return
skip
(
"32-bit platform"
)(
test_method
)
return
test_method
...
...
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