Skip to content

Commit

Permalink
Python 2.6 support using PyPI unittet2
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Sep 14, 2014
1 parent e7dbf2b commit b341f13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pathspec/tests/test_gitignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"""
This script tests ``GitIgnorePattern``.
"""

import unittest
try:
import unittest2 as unittest # for Python 2.6
except ImportError:
import unittest

from pathspec import GitIgnorePattern

Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[tox]
envlist = py27, py33, py34, pypy
envlist = py26, py27, py33, py34, pypy

[testenv:py26]
deps = unittest2
commands = python setup.py test

[testenv]
commands = python setup.py test

0 comments on commit b341f13

Please sign in to comment.