Skip test_source_mtime_long_long on 32bit and lower platforms

This commit is contained in:
Ondřej Súkup 2019-04-04 12:53:55 +02:00
parent 973301b675
commit 77526f412c
No known key found for this signature in database
GPG Key ID: 18E6D11A219AF3B7
1 changed files with 3 additions and 0 deletions

View File

@ -1232,6 +1232,9 @@ class TestIssue2121:
result.stdout.fnmatch_lines(["*E*assert (1 + 1) == 3"])
@pytest.mark.skipif(
sys.maxsize <= (2 ** 31 - 1), reason="Causes OverflowError on 32bit systems"
)
@pytest.mark.parametrize("offset", [-1, +1])
def test_source_mtime_long_long(testdir, offset):
"""Support modification dates after 2038 in rewritten files (#4903).