churchyard / rpms / pytest

Forked from rpms/pytest 6 years ago
Clone
Blob Blame History Raw
From 77526f412c46099785f567a49edbeddb6688fa60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= <mimi.vx@gmail.com>
Date: Thu, 4 Apr 2019 12:53:55 +0200
Subject: [PATCH] Skip test_source_mtime_long_long on 32bit and lower platforms

---
 testing/test_assertrewrite.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py
index 72bfbcc55..fb3f81770 100644
--- a/testing/test_assertrewrite.py
+++ b/testing/test_assertrewrite.py
@@ -1232,6 +1232,9 @@ def test_simple_failure():
         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).