mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Add fixes to previous commit
This commit is contained in:
parent
83b743cf96
commit
77b70ba193
3 changed files with 7 additions and 4 deletions
5
third_party/python/Lib/mailbox.py
vendored
5
third_party/python/Lib/mailbox.py
vendored
|
@ -2121,8 +2121,9 @@ def _create_temporary(path):
|
||||||
def _sync_flush(f):
|
def _sync_flush(f):
|
||||||
"""Ensure changes to file f are physically on disk."""
|
"""Ensure changes to file f are physically on disk."""
|
||||||
f.flush()
|
f.flush()
|
||||||
if hasattr(os, 'fsync'):
|
# TODO(jart): Why does this need fsync() lool?
|
||||||
os.fsync(f.fileno())
|
#if hasattr(os, 'fsync'):
|
||||||
|
# os.fsync(f.fileno())
|
||||||
|
|
||||||
def _sync_close(f):
|
def _sync_close(f):
|
||||||
"""Close file f, ensuring all changes are physically on disk."""
|
"""Close file f, ensuring all changes are physically on disk."""
|
||||||
|
|
5
third_party/python/Lib/test/test_gzip.py
vendored
5
third_party/python/Lib/test/test_gzip.py
vendored
|
@ -71,8 +71,9 @@ class TestGzip(BaseTest):
|
||||||
# Try flush and fileno.
|
# Try flush and fileno.
|
||||||
f.flush()
|
f.flush()
|
||||||
f.fileno()
|
f.fileno()
|
||||||
if hasattr(os, 'fsync'):
|
# TODO(jart): Why does this need fsync()?
|
||||||
os.fsync(f.fileno())
|
#if hasattr(os, 'fsync'):
|
||||||
|
# os.fsync(f.fileno())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Test multiple close() calls.
|
# Test multiple close() calls.
|
||||||
|
|
1
third_party/python/python.mk
vendored
1
third_party/python/python.mk
vendored
|
@ -4207,6 +4207,7 @@ o/$(MODE)/third_party/python/Lib/test/test_tarfile.py.runs: QUOTA = -L120 -C64
|
||||||
o/$(MODE)/third_party/python/Lib/test/test_sqlite.py.runs: QUOTA = -L120
|
o/$(MODE)/third_party/python/Lib/test/test_sqlite.py.runs: QUOTA = -L120
|
||||||
o/$(MODE)/third_party/python/Lib/test/test_gzip.py.runs: QUOTA = -L120
|
o/$(MODE)/third_party/python/Lib/test/test_gzip.py.runs: QUOTA = -L120
|
||||||
o/$(MODE)/third_party/python/Lib/test/test_logging.py.runs: QUOTA = -M512m
|
o/$(MODE)/third_party/python/Lib/test/test_logging.py.runs: QUOTA = -M512m
|
||||||
|
o/$(MODE)/third_party/python/Lib/test/test_resource.py.runs: QUOTA = -C1000000
|
||||||
o/$(MODE)/third_party/python/Lib/test/test_email/test_email.py.runs: QUOTA = -C32 -M1024m
|
o/$(MODE)/third_party/python/Lib/test/test_email/test_email.py.runs: QUOTA = -C32 -M1024m
|
||||||
|
|
||||||
THIRD_PARTY_PYTHON_LIBS = \
|
THIRD_PARTY_PYTHON_LIBS = \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue