kadler / cpython

The Python programming language
https://www.python.org/
Other
2 stars 2 forks source link

Test failures in test_importlib #18

Open kadler opened 3 years ago

kadler commented 3 years ago
======================================================================
ERROR: test_timestamp_overflow (test.test_importlib.source.test_file_loader.Frozen_SimpleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_importlib/util.py", line 303, in wrapper
    to_return = fxn(*args, **kwargs)
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_importlib/source/test_file_loader.py", line 205, in test_timestamp_overflow
    os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5))
OSError: [Errno 22] Invalid argument

======================================================================
ERROR: test_timestamp_overflow (test.test_importlib.source.test_file_loader.SourceDateEpoch_SimpleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_py_compile.py", line 30, in wrapper
    return fxn(*args, **kwargs)
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_importlib/util.py", line 303, in wrapper
    to_return = fxn(*args, **kwargs)
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_importlib/source/test_file_loader.py", line 205, in test_timestamp_overflow
    os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5))
OSError: [Errno 22] Invalid argument

======================================================================
ERROR: test_timestamp_overflow (test.test_importlib.source.test_file_loader.Source_SimpleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_importlib/util.py", line 303, in wrapper
    to_return = fxn(*args, **kwargs)
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_importlib/source/test_file_loader.py", line 205, in test_timestamp_overflow
    os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5))
OSError: [Errno 22] Invalid argument

IBM i is not y2k38 compliant yet. :scream: I suspect these tests will need to be disabled for now.

kadler commented 3 years ago

Similar issue in test_zipfile:

======================================================================
ERROR: test_add_file_after_2107 (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/QOpenSys/jenkins/workspace/cpython_sem-fix/Lib/test/test_zipfile.py", line 615, in test_add_file_after_2107
    os.utime(TESTFN, (4386268800, 4386268800))
OSError: [Errno 22] Invalid argument