mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Adjust comment
This commit is contained in:
parent
4b3c58c8a0
commit
a19b1a664f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue