Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python-handel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Boards
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bliss
python-handel
Commits
3c2a5430
Commit
3c2a5430
authored
Jul 03, 2018
by
Vincent Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests for python 2.7
parent
a238c42b
Pipeline
#4056
passed with stage
in 1 minute and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
handel/interface.py
handel/interface.py
+0
-1
tests/conftest.py
tests/conftest.py
+7
-0
No files found.
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
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