diff options
author | Andras Tim <andras.tim@gmail.com> | 2017-07-17 01:25:08 +0200 |
---|---|---|
committer | Andras Tim <andras.tim@gmail.com> | 2017-07-17 01:28:17 +0200 |
commit | 1ff54ba205925521faf12a9d1838c8893be5dcf0 (patch) | |
tree | c75683fc8b6ad2674ff25a02893574ab4910b56f /testing | |
parent | df54bf0db524a9c8e5b6c2847c56d1589f533087 (diff) | |
download | pytest-1ff54ba205925521faf12a9d1838c8893be5dcf0.tar.gz |
Fixed E201 flake8 errors
whitespace after ‘(‘
Diffstat (limited to 'testing')
-rw-r--r-- | testing/python/approx.py | 2 | ||||
-rw-r--r-- | testing/python/metafunc.py | 2 | ||||
-rw-r--r-- | testing/test_argcomplete.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/testing/python/approx.py b/testing/python/approx.py index 97669b076..853f2fe02 100644 --- a/testing/python/approx.py +++ b/testing/python/approx.py @@ -243,7 +243,7 @@ class TestApprox(object): def test_complex(self): within_1e6 = [ - ( 1.000001 + 1.0j, 1.0 + 1.0j), + (1.000001 + 1.0j, 1.0 + 1.0j), (1.0 + 1.000001j, 1.0 + 1.0j), (-1.000001 + 1.0j, -1.0 + 1.0j), (1.0 - 1.000001j, 1.0 - 1.0j), diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py index 5d0cf39f1..8718f6d52 100644 --- a/testing/python/metafunc.py +++ b/testing/python/metafunc.py @@ -141,7 +141,7 @@ class TestMetafunc(object): @pytest.mark.issue510 def test_parametrize_empty_list(self): - def func( y): pass + def func(y): pass metafunc = self.Metafunc(func) metafunc.parametrize("y", []) assert 'skip' in metafunc._calls[0].keywords diff --git a/testing/test_argcomplete.py b/testing/test_argcomplete.py index 61ebbcafe..32705e130 100644 --- a/testing/test_argcomplete.py +++ b/testing/test_argcomplete.py @@ -52,7 +52,7 @@ class FilesCompleter(object): if self.directories: files = _wrapcall(['bash','-c', "compgen -A directory -- '{p}'".format(p=prefix)]) - completion += [ f + '/' for f in files] + completion += [f + '/' for f in files] for x in self.allowednames: completion += _wrapcall(['bash', '-c', "compgen -A file -X '!*.{0}' -- '{p}'".format(x,p=prefix)]) @@ -63,7 +63,7 @@ class FilesCompleter(object): anticomp = _wrapcall(['bash', '-c', "compgen -A directory -- '{p}'".format(p=prefix)]) - completion = list( set(completion) - set(anticomp)) + completion = list(set(completion) - set(anticomp)) if self.directories: completion += [f + '/' for f in anticomp] |