The nose discovery process finds all modules whose name starts with test, and within them all functions which have test in the name an
nose
test
Tell nose that the function is not a test - use the nottest decorator.
# module foo.accounts from nose.tools import nottest @nottest def make_test_account(): ...