summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-25 11:08:44 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-09-17 14:47:52 -0700
commite1deb0ba058e1d07930557d1404833a85ddfe82c (patch)
tree751960d2c59889103e8a214059bef38fa23a27ca
parent75c907c0ae909e8ba34964c29fad2bb9059edb13 (diff)
downloadparamiko-e1deb0ba058e1d07930557d1404833a85ddfe82c.tar.gz
Move comment
-rw-r--r--tasks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks.py b/tasks.py
index a9c94ec3..e2bb0331 100644
--- a/tasks.py
+++ b/tasks.py
@@ -9,9 +9,6 @@ from invocations.packaging.release import ns as release_coll, publish
@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"
@@ -23,6 +20,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']