Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
2e107edc
Commit
2e107edc
authored
Dec 18, 2016
by
antoine.lizee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: skip tests for mongo engine on python v2.6
parent
cf3a95c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test_basic.py
flask_admin/tests/mongoengine/test_basic.py
+4
-0
No files found.
flask_admin/tests/mongoengine/test_basic.py
View file @
2e107edc
...
...
@@ -5,6 +5,10 @@ from nose.plugins.skip import SkipTest
from
flask_admin._compat
import
PY2
,
as_unicode
if
not
PY2
:
raise
SkipTest
(
'MongoEngine is not Python 3 compatible'
)
# Skip test on Python 2.6 since it is still supported by flask-admin:
import
sys
if
sys
.
version_info
[
0
]
==
2
and
sys
.
version_info
[
1
]
==
6
:
raise
SkipTest
(
'MongoEngine is not Python 2.6 compatible as of its 0.11 version.'
)
from
wtforms
import
fields
,
validators
...
...
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