summaryrefslogtreecommitdiff
path: root/testsuite/test_util.py
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2020-11-07 17:40:47 -0600
committerGitHub <noreply@github.com>2020-11-07 17:40:47 -0600
commit07b113bdb43524181ec828a3b9da009a388c2161 (patch)
treea966043d0ff0cc46a1ffa412fe9cc44d19616510 /testsuite/test_util.py
parenta35d409e24d8b94e6a5b504acc659fdbcf862513 (diff)
parenta6e25e1f84220dccd984f7190a1e54806e009230 (diff)
downloadpep8-07b113bdb43524181ec828a3b9da009a388c2161.tar.gz
Merge pull request #968 from asottile/github_actions
use github actions instead of travis-ci
Diffstat (limited to 'testsuite/test_util.py')
-rw-r--r--testsuite/test_util.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/testsuite/test_util.py b/testsuite/test_util.py
index 7eff16a..075b163 100644
--- a/testsuite/test_util.py
+++ b/testsuite/test_util.py
@@ -8,8 +8,6 @@ from pycodestyle import normalize_paths
class UtilTestCase(unittest.TestCase):
def test_normalize_paths(self):
- cwd = os.getcwd()
-
self.assertEqual(normalize_paths(''), [])
self.assertEqual(normalize_paths([]), [])
self.assertEqual(normalize_paths(None), [])
@@ -17,7 +15,11 @@ class UtilTestCase(unittest.TestCase):
self.assertEqual(normalize_paths('foo'), ['foo'])
self.assertEqual(normalize_paths('foo,bar'), ['foo', 'bar'])
self.assertEqual(normalize_paths('foo, bar '), ['foo', 'bar'])
- self.assertEqual(normalize_paths('/foo/bar,baz/../bat'),
- [os.path.realpath('/foo/bar'), cwd + '/bat'])
- self.assertEqual(normalize_paths(".pyc,\n build/*"),
- ['.pyc', cwd + '/build/*'])
+ self.assertEqual(
+ normalize_paths('/foo/bar,baz/../bat'),
+ [os.path.realpath('/foo/bar'), os.path.abspath('bat')],
+ )
+ self.assertEqual(
+ normalize_paths(".pyc,\n build/*"),
+ ['.pyc', os.path.abspath('build/*')],
+ )