diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-04 09:59:55 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-04 09:59:55 +0200 |
commit | b04908899886273f32e82b8a3ce85c1014e24304 (patch) | |
tree | eaf500213468d122f5413d38bceebd3c92e32be6 | |
parent | e66913146492056188f5f4f37c988ebb9413e093 (diff) | |
download | pep8-b04908899886273f32e82b8a3ce85c1014e24304.tar.gz |
Tests should pass for the tarball distributed on PyPI; issue 267
-rw-r--r-- | CHANGES.txt | 5 | ||||
-rwxr-xr-x | pep8.py | 2 | ||||
-rw-r--r-- | setup.cfg | 5 | ||||
-rw-r--r-- | testsuite/test_shell.py | 9 | ||||
-rw-r--r-- | tox.ini | 5 |
5 files changed, 15 insertions, 11 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 4e302ff..d81a64d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,11 @@ Changelog ========= +1.5.x (unreleased) +------------------ + + + 1.5.2 (2014-04-04) ------------------ @@ -46,7 +46,7 @@ W warnings """ from __future__ import with_statement -__version__ = '1.5.2' +__version__ = '1.5.3a0' import os import sys @@ -1,2 +1,7 @@ [wheel] universal = 1 + +[pep8] +select = +ignore = E226,E24 +max_line_length = 79 diff --git a/testsuite/test_shell.py b/testsuite/test_shell.py index 66d4174..e1205cc 100644 --- a/testsuite/test_shell.py +++ b/testsuite/test_shell.py @@ -82,11 +82,10 @@ class ShellTestCase(unittest.TestCase): self.assertEqual(x, str(num)) self.assertEqual(y, str(col)) self.assertTrue(msg.startswith(' E11')) - # Config file read from the pep8's setup.cfg or tox.ini - config_filenames = self._config_filenames - self.assertEqual(len(config_filenames), 2) - self.assertTrue(config_filenames[0].endswith('setup.cfg')) - self.assertTrue(config_filenames[1].endswith('tox.ini')) + # Config file read from the pep8's setup.cfg + config_filenames = [os.path.basename(p) + for p in self._config_filenames] + self.assertTrue('setup.cfg' in config_filenames) def test_check_stdin(self): pep8.PROJECT_CONFIG = () @@ -13,8 +13,3 @@ commands = {envpython} pep8.py --statistics pep8.py {envpython} pep8.py --doctest {envpython} -m testsuite.test_all - -[pep8] -select = -ignore = E226,E24 -max_line_length = 79 |