Build also on python 3.2 and 3.3

This commit is contained in:
Marcin Kulik
2013-10-06 00:35:52 +02:00
parent 827eedcc8f
commit c965434fcf
3 changed files with 9 additions and 8 deletions

View File

@@ -2,4 +2,6 @@ language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
script: make test

View File

@@ -1,17 +1,16 @@
import sys
from StringIO import StringIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
stdout = None
def assert_printed(expected):
if isinstance(expected, basestring):
success = expected in stdout.getvalue()
assert success, 'expected text "%s" not printed' % expected
else:
success = expected.match(stdout.getvalue())
assert success, 'expected pattern "%s" not printed' % expected.pattern
def assert_not_printed(expected):

View File

@@ -1,6 +1,6 @@
from asciinema.commands.version import VersionCommand
from asciinema.common import VERSION
from test_helper import assert_printed, Test
from .test_helper import assert_printed, Test
class TestVersionCommand(Test):