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
8
third_party/python/Lib/test/test_datetime.py
vendored
8
third_party/python/Lib/test/test_datetime.py
vendored
|
@ -3,6 +3,12 @@ import sys
|
|||
|
||||
from test.support import import_fresh_module, run_unittest
|
||||
|
||||
if __name__ == "PYOBJ.COM":
|
||||
import _datetime
|
||||
import _strptime
|
||||
import datetime
|
||||
from test import datetimetester
|
||||
|
||||
TESTS = 'test.datetimetester'
|
||||
|
||||
try:
|
||||
|
@ -24,6 +30,8 @@ all_test_classes = []
|
|||
|
||||
for module, suffix in zip(test_modules, test_suffixes):
|
||||
test_classes = []
|
||||
if suffix == "_Pure":
|
||||
continue # skip Pure-Python tests
|
||||
for name, cls in module.__dict__.items():
|
||||
if not isinstance(cls, type):
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue