diff --git a/py/conftest.py b/py/conftest.py index 601606c7e..229b0793e 100644 --- a/py/conftest.py +++ b/py/conftest.py @@ -15,4 +15,15 @@ exitfirst = False fulltrace = False showlocals = False nomagic = False + +import py +Option = py.test.config.Option + +option = py.test.config.addoptions("execnet options", + Option('-S', '', + action="store", dest="sshtarget", default=None, + help=("target to run tests requiring ssh, e.g. " + "user@codespeak.net")), + ) + dist_rsync_roots = ['.'] diff --git a/py/execnet/conftest.py b/py/execnet/conftest.py deleted file mode 100644 index 9ceddb7e3..000000000 --- a/py/execnet/conftest.py +++ /dev/null @@ -1,10 +0,0 @@ -import py -Option = py.test.config.Option - -option = py.test.config.addoptions("execnet options", - Option('-S', '', - action="store", dest="sshtarget", default=None, - help=("target to run tests requiring ssh, e.g. " - "user@codespeak.net")), - ) - diff --git a/py/execnet/testing/test_gateway.py b/py/execnet/testing/test_gateway.py index 1031ea0d3..854d613b7 100644 --- a/py/execnet/testing/test_gateway.py +++ b/py/execnet/testing/test_gateway.py @@ -2,7 +2,7 @@ from __future__ import generators import os, sys, time, signal import py from py.__.execnet import gateway -from py.__.execnet.conftest import option +from py.__.conftest import option mypath = py.magic.autopath() from StringIO import StringIO