-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken tests in pypy environment removing testfixture package dep…
…endency
- Loading branch information
Showing
5 changed files
with
40 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
1.2.2 | ||
===== | ||
|
||
- Remove testfixtures requirements (it's broken with pypy) | ||
|
||
1.2.1 | ||
===== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
nose==1.3.7 | ||
testfixtures==4.8.0 | ||
Sphinx==1.3.1 | ||
sphinx-rtd-theme==0.1.8 | ||
tox==2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import unicode_literals | ||
|
||
from testfixtures import TempDirectory | ||
import tempfile | ||
|
||
from prettyconf.exceptions import InvalidConfigurationFile | ||
|
||
from .base import BaseTestCase | ||
|
||
|
||
class IniFileConfigurationLoaderTestCase(BaseTestCase): | ||
|
||
def setUp(self): | ||
super(IniFileConfigurationLoaderTestCase, self).setUp() | ||
self.tmp_dir = TempDirectory() | ||
|
||
def tearDown(self): | ||
super(IniFileConfigurationLoaderTestCase, self).tearDown() | ||
self.tmp_dir.cleanup_all() | ||
|
||
def test_skip_invalid_ini_file(self): | ||
from prettyconf.loaders import IniFileConfigurationLoader | ||
|
||
test_file = self.tmp_dir.write('some/strange/config.cfg', '*&ˆ%$#$%ˆ&*('.encode('utf8')) | ||
with self.assertRaises(InvalidConfigurationFile): | ||
IniFileConfigurationLoader(test_file) | ||
with tempfile.NamedTemporaryFile() as temp: | ||
temp.write(u'*&ˆ%$#$%ˆ&*('.encode("utf-8")) | ||
|
||
with self.assertRaises(InvalidConfigurationFile): | ||
IniFileConfigurationLoader(temp.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[tox] | ||
envlist = py27, py34, py35 | ||
envlist = py27, py34, py35, pypy | ||
|
||
[testenv] | ||
commands = python setup.py test | ||
|