Adjust comment

This commit is contained in:
Antoine Pitrou 2013-09-14 00:40:46 +02:00
parent 4b3c58c8a0
commit a19b1a664f
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ def load_tests(loader, standard_tests, pattern):
# top level directory cached on loader instance
this_dir = os.path.dirname(__file__)
pattern = pattern or "test*.py"
# We are inside unittest.test, so the top-level is two notches up
# We are inside unittest.test.testmock, so the top-level is three notches up
top_level_dir = os.path.dirname(os.path.dirname(os.path.dirname(this_dir)))
package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
top_level_dir=top_level_dir)