summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-25 11:08:44 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-10-25 11:08:44 -0700
commit5bf4a0f80c45bddf9941c33ec22ed1765d70c6b9 (patch)
treee00a49f7d7f277c5cd8b12ed7244d3208836f4e8 /tasks.py
parent5da128e587ea548dd6b18f3d74726a3493141d7b (diff)
downloadparamiko-5bf4a0f80c45bddf9941c33ec22ed1765d70c6b9.tar.gz
Move comment
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks.py b/tasks.py
index 64f0ce3d..3b0d9888 100644
--- a/tasks.py
+++ b/tasks.py
@@ -10,9 +10,6 @@ from invocations.testing import count_errors
@task
def test(ctx, verbose=True, coverage=False, opts=""):
- # TODO: once pytest coverage plugin works, see if there's a pytest-native
- # way to handle the env stuff too, then we can remove these tasks entirely
- # in favor of just "run pytest"?
if verbose:
opts += " --verbose"
runner = "pytest"
@@ -24,6 +21,9 @@ def test(ctx, verbose=True, coverage=False, opts=""):
runner = "coverage run --source=paramiko -m pytest"
# Strip SSH_AUTH_SOCK from parent env to avoid pollution by interactive
# users.
+ # TODO: once pytest coverage plugin works, see if there's a pytest-native
+ # way to handle the env stuff too, then we can remove these tasks entirely
+ # in favor of just "run pytest"?
env = dict(os.environ)
if 'SSH_AUTH_SOCK' in env:
del env['SSH_AUTH_SOCK']