mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Fix some issues and do some code cleanup
This commit is contained in:
parent
1f229e4efc
commit
312ed5c67c
72 changed files with 880 additions and 982 deletions
2
third_party/python/Lib/test/test_doctest.py
vendored
2
third_party/python/Lib/test/test_doctest.py
vendored
|
@ -2921,7 +2921,7 @@ Invalid file name:
|
|||
>>> print(normalize(err)) # doctest: +ELLIPSIS
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
FileNotFoundError: [Errno 2] ENOENT/2/No such file or directory: 'nosuchfile'
|
||||
FileNotFoundError: [Errno 2] ENOENT...
|
||||
|
||||
Invalid doctest option:
|
||||
|
||||
|
|
2
third_party/python/Lib/test/test_module.py
vendored
2
third_party/python/Lib/test/test_module.py
vendored
|
@ -29,7 +29,7 @@ class ModuleTests(unittest.TestCase):
|
|||
self.fail("__name__ = %s" % repr(s))
|
||||
except AttributeError:
|
||||
pass
|
||||
if cosmo.MODE != 'tiny':
|
||||
if 'tiny' not in cosmo.MODE:
|
||||
self.assertEqual(foo.__doc__, ModuleType.__doc__)
|
||||
|
||||
def test_uninitialized_missing_getattr(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue