Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-common
Commits
1006b18e3539
Commit
da9fceaf
authored
Jan 26, 2009
by
Sylvain
Browse files
merge
parents
c8f0137ccf37
2a6212740164
Changes
1
Hide whitespace changes
Inline
Side-by-side
testlib.py
View file @
1006b18e
...
...
@@ -1623,7 +1623,7 @@ succeeded test into", osp.join(os.getcwd(),FILE_RESTART)
"""compares two floats"""
if
msg
is
None
:
msg
=
"%r != %r"
%
(
obj
,
other
)
self
.
assert_
(
math
.
fabs
(
obj
-
other
)
<
prec
)
self
.
assert_
(
math
.
fabs
(
obj
-
other
)
<
prec
,
msg
)
def
failUnlessRaises
(
self
,
excClass
,
callableObj
,
*
args
,
**
kwargs
):
"""override default failUnlessRaise method to return the raised
...
...
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