Skip to content

Commit bc7f0b3

Browse files
committed
MRG - merge in nisext changes telling nose that routines are not tests
1 parent 9383298 commit bc7f0b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nisext/testers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ def tests_installed(mod_name, source_path=None):
210210
finally:
211211
shutil.rmtree(install_path)
212212

213+
# Tell nose this is not a test
214+
tests_installed.__test__ = False
215+
213216

214217
def tests_from_zip(mod_name, zip_fname):
215218
""" Runs test from sdist zip source archive """
@@ -224,6 +227,8 @@ def tests_from_zip(mod_name, zip_fname):
224227
finally:
225228
shutil.rmtree(install_path)
226229

230+
tests_from_zip.__test__ = False
231+
227232

228233
def sdist_tests(mod_name, repo_path=None):
229234
""" Make sdist zip, install from it, and run tests """
@@ -244,3 +249,4 @@ def sdist_tests(mod_name, repo_path=None):
244249
os.chdir(pwd)
245250
shutil.rmtree(install_path)
246251

252+
sdist_tests.__test__ = False

0 commit comments

Comments
 (0)