summaryrefslogtreecommitdiff
path: root/testsuite/test_shell.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-04 09:59:55 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-04 09:59:55 +0200
commitb04908899886273f32e82b8a3ce85c1014e24304 (patch)
treeeaf500213468d122f5413d38bceebd3c92e32be6 /testsuite/test_shell.py
parente66913146492056188f5f4f37c988ebb9413e093 (diff)
downloadpep8-b04908899886273f32e82b8a3ce85c1014e24304.tar.gz
Tests should pass for the tarball distributed on PyPI; issue 267
Diffstat (limited to 'testsuite/test_shell.py')
-rw-r--r--testsuite/test_shell.py9
1 files changed, 4 insertions, 5 deletions
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 = ()