Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fastkml
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
Aurélien Vermylen
fastkml
Commits
25752e80
Commit
25752e80
authored
Sep 17, 2014
by
Ian Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only install unittest2 if Python 2.6
parent
125a7497
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
.travis.yml
.travis.yml
+1
-0
fastkml/test_main.py
fastkml/test_main.py
+4
-1
requirements/test.txt
requirements/test.txt
+0
-1
No files found.
.travis.yml
View file @
25752e80
...
...
@@ -14,6 +14,7 @@ env:
install
:
-
pip install -r requirements/test.txt
-
if $LXML ==
true
; then pip install lxml; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
# command to run tests, e.g. python setup.py test
script
:
...
...
fastkml/test_main.py
View file @
25752e80
...
...
@@ -15,7 +15,10 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import
unittest2
as
unittest
try
:
import
unittest2
as
unittest
# Needed in Python 2.6
except
:
import
unittest
from
fastkml
import
kml
from
fastkml
import
styles
...
...
requirements/test.txt
View file @
25752e80
-r common.txt
unittest2
pytest
pep8
coveralls
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