mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add Python JSON tests (#407)
This commit is contained in:
parent
d25a67f4eb
commit
f6df29cc3d
24 changed files with 536 additions and 345 deletions
4
third_party/python/Lib/unittest/loader.py
vendored
4
third_party/python/Lib/unittest/loader.py
vendored
|
@ -283,7 +283,9 @@ class TestLoader(object):
|
|||
if os.path.isdir(os.path.abspath(start_dir)):
|
||||
start_dir = os.path.abspath(start_dir)
|
||||
if start_dir != top_level_dir:
|
||||
is_not_importable = not os.path.isfile(os.path.join(start_dir, '__init__.py'))
|
||||
is_not_importable_py = not os.path.isfile(os.path.join(start_dir, '__init__.py'))
|
||||
is_not_importable_pyc = not os.path.isfile(os.path.join(start_dir, '__init__.pyc'))
|
||||
is_not_importable = is_not_importable_py and is_not_importable_pyc
|
||||
else:
|
||||
# support for discovery from dotted module names
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue