mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
PEP 8 E111 & E114 cleanup. (#20838)
This commit is contained in:
@@ -73,7 +73,7 @@ class TestGalaxy(unittest.TestCase):
|
||||
tar = tarfile.open(output_file, "w:gz")
|
||||
tar.add(source_dir, arcname=os.path.basename(source_dir))
|
||||
except AttributeError: # tarfile obj. has no attribute __exit__ prior to python 2. 7
|
||||
pass
|
||||
pass
|
||||
finally: # ensuring closure of tarfile obj
|
||||
tar.close()
|
||||
|
||||
|
||||
2
test/units/plugins/cache/test_cache.py
vendored
2
test/units/plugins/cache/test_cache.py
vendored
@@ -76,7 +76,7 @@ class TestAbstractClass(unittest.TestCase):
|
||||
|
||||
def test_subclass_error(self):
|
||||
class CacheModule1(BaseCacheModule):
|
||||
pass
|
||||
pass
|
||||
with self.assertRaises(TypeError):
|
||||
CacheModule1()
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class TestConnectionBaseClass(unittest.TestCase):
|
||||
|
||||
def test_subclass_error(self):
|
||||
class ConnectionModule1(ConnectionBase):
|
||||
pass
|
||||
pass
|
||||
with self.assertRaises(TypeError):
|
||||
ConnectionModule1()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user