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
Bliss
python-handel
Commits
3c2a5430
Commit
3c2a5430
authored
Jul 03, 2018
by
Vincent Michel
Browse files
Fix tests for python 2.7
parent
a238c42b
Pipeline
#4056
passed with stage
in 1 minute and 32 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
handel/interface.py
View file @
3c2a5430
...
...
@@ -687,7 +687,6 @@ def get_config(*path):
# Check version at import time
if
get_handel_version
()
<
(
1
,
2
,
19
):
print
(
get_handel_version
())
warnings
.
warn
(
"""
\
The current handel version is older than 1.2.19.
This might cause bugs, especially with the FalconX.
...
...
tests/conftest.py
View file @
3c2a5430
...
...
@@ -21,8 +21,15 @@ def interface_import():
assert
len
(
record
)
==
1
assert
"older than 1.2.19"
in
str
(
record
[
0
].
message
)
# Remove mock
del
dlopen
.
return_value
.
xiaGetVersionInfo
# Work around for https://bugs.python.org/issue31177
dlopen
.
return_value
.
_mock_children
.
clear
()
# Check dlopen
dlopen
.
assert_called_once_with
(
'handel.dll'
)
assert
interface
.
handel
==
dlopen
.
return_value
yield
interface
...
...
Write
Preview
Supports
Markdown
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