fixed travis matrix and tests

This commit is contained in:
maxkoryukov
2016-02-03 03:53:49 +05:00
parent 2852aadc71
commit 2baadd19cf
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ cache:
# http://about.travis-ci.org/docs/user/ci-environment/#Python-VM-images
python:
- "2.6"
- "2.7"
matrix:
include:
- python: "2.7"

View File

@@ -1,4 +1,5 @@
#import unittest
import sys
import mock
from unittest import TestCase
from mock import MagicMock
@@ -7,14 +8,14 @@ import headphones.config
from headphones.config import path
def is26():
if sys.version_info[0]==2 and sys.version_info[1]==6:
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
return True
return False
class ConfigPathTest(TestCase):
def test_path(self):
p = path('/tmp')
#fuckin python 2.6:
if not is26():
self.assertIsInstance(p, path)