Create a tox config for automating tests for different Python versions.

To use:
    sudo pip install tox
    tox
This commit is contained in:
Lance Stout 2011-08-31 00:00:12 -07:00
parent 730c3fada0
commit c3df4dd052
3 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View file

@ -4,3 +4,5 @@ dist/
MANIFEST
docs/_build/
*.swp
.tox/
.coverage

View file

@ -58,9 +58,6 @@ class SleekTest(unittest.TestCase):
unittest.TestCase.__init__(self, *args, **kwargs)
self.xmpp = None
def runTest(self):
pass
def parse_xml(self, xml_string):
try:
xml = ET.fromstring(xml_string)

5
tox.ini Normal file
View file

@ -0,0 +1,5 @@
[tox]
envlist = py26,py27,py31,py32
[testenv]
deps = nose
commands = nosetests --where=tests --exclude=live -i sleektest.py