From e78c99b60561248589290f6020cc55369f8e15e0 Mon Sep 17 00:00:00 2001 From: Andrei Date: Fri, 14 Apr 2017 14:58:24 -0700 Subject: [PATCH] Add tests/CI, fix playable import error on py3 --- .travis.yml | 12 ++++++++++++ disco/voice/playable.py | 2 +- setup.py | 9 +++++++++ tests/test_imports.py | 42 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 tests/test_imports.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..61a1ecd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +langauge: python + +python: + - '2.7' + - '3.2' + - '3.3' + - '3.4' + - '3.5' + - '3.6' + - 'nightly' + +script: 'python setup.py test' diff --git a/disco/voice/playable.py b/disco/voice/playable.py index aaeb7bd..ee9437b 100644 --- a/disco/voice/playable.py +++ b/disco/voice/playable.py @@ -14,7 +14,7 @@ from disco.voice.opus import OpusEncoder try: from cStringIO import cStringIO as StringIO except: - from StringIO import StringIO + from six import StringIO OPUS_HEADER_SIZE = struct.calcsize('