From 2baadd19cfc6cee0a42275a48140c7a50c483816 Mon Sep 17 00:00:00 2001 From: maxkoryukov Date: Wed, 3 Feb 2016 03:53:49 +0500 Subject: [PATCH] fixed travis matrix and tests --- .travis.yml | 1 - headphones/config_test.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5c54f77..b8feda59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/headphones/config_test.py b/headphones/config_test.py index cffae098..0c89ee58 100644 --- a/headphones/config_test.py +++ b/headphones/config_test.py @@ -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)