diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2017-11-27 20:35:19 -0500 |
---|---|---|
committer | Yaroslav Halchenko <debian@onerussian.com> | 2017-11-27 20:35:19 -0500 |
commit | 6ee08fce6ec508fdc6e577e3e507b342d048fa16 (patch) | |
tree | 47b8bac37afca3878d4535d3c13db38e55242628 /git/test/lib/helper.py | |
parent | 0a96030d82fa379d24b952a58eed395143950c7b (diff) | |
download | gitpython-6ee08fce6ec508fdc6e577e3e507b342d048fa16.tar.gz |
RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXT
I did keep some "bare" except with catch all Exception: , while tried to disable
flake8 complaints where clearly all exceptions are to be catched
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r-- | git/test/lib/helper.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index 729c76a4..ff337f29 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -139,7 +139,7 @@ def with_rw_repo(working_tree_ref, bare=False): try: try: return func(self, rw_repo) - except: + except: # noqa E722 log.info("Keeping repo after failure: %s", repo_dir) repo_dir = None raise @@ -227,7 +227,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): Same as with_rw_repo, but also provides a writable remote repository from which the rw_repo has been forked as well as a handle for a git-daemon that may be started to run the remote_repo. - The remote repository was cloned as bare repository from the rorepo, whereas + The remote repository was cloned as bare repository from the ro repo, whereas the rw repo has a working tree and was cloned from the remote repository. remote_repo has two remotes: origin and daemon_origin. One uses a local url, @@ -296,7 +296,7 @@ def with_rw_and_rw_remote_repo(working_tree_ref): with cwd(rw_repo.working_dir): try: return func(self, rw_repo, rw_daemon_repo) - except: + except: # noqa E722 log.info("Keeping repos after failure: \n rw_repo_dir: %s \n rw_daemon_repo_dir: %s", rw_repo_dir, rw_daemon_repo_dir) rw_repo_dir = rw_daemon_repo_dir = None |