Adjust comment
This commit is contained in:
parent
4b3c58c8a0
commit
a19b1a664f
|
@ -6,7 +6,7 @@ def load_tests(loader, standard_tests, pattern):
|
||||||
# top level directory cached on loader instance
|
# top level directory cached on loader instance
|
||||||
this_dir = os.path.dirname(__file__)
|
this_dir = os.path.dirname(__file__)
|
||||||
pattern = pattern or "test*.py"
|
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)))
|
top_level_dir = os.path.dirname(os.path.dirname(os.path.dirname(this_dir)))
|
||||||
package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
|
package_tests = loader.discover(start_dir=this_dir, pattern=pattern,
|
||||||
top_level_dir=top_level_dir)
|
top_level_dir=top_level_dir)
|
||||||
|
|
Loading…
Reference in New Issue