churchyard / rpms / pytest

Forked from rpms/pytest 6 years ago
Clone
983595c
From 77526f412c46099785f567a49edbeddb6688fa60 Mon Sep 17 00:00:00 2001
983595c
From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= <mimi.vx@gmail.com>
983595c
Date: Thu, 4 Apr 2019 12:53:55 +0200
983595c
Subject: [PATCH] Skip test_source_mtime_long_long on 32bit and lower platforms
983595c
983595c
---
983595c
 testing/test_assertrewrite.py | 3 +++
983595c
 1 file changed, 3 insertions(+)
983595c
983595c
diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py
983595c
index 72bfbcc55..fb3f81770 100644
983595c
--- a/testing/test_assertrewrite.py
983595c
+++ b/testing/test_assertrewrite.py
983595c
@@ -1232,6 +1232,9 @@ def test_simple_failure():
983595c
         result.stdout.fnmatch_lines(["*E*assert (1 + 1) == 3"])
983595c
 
983595c
 
983595c
+@pytest.mark.skipif(
983595c
+    sys.maxsize <= (2 ** 31 - 1), reason="Causes OverflowError on 32bit systems"
983595c
+)
983595c
 @pytest.mark.parametrize("offset", [-1, +1])
983595c
 def test_source_mtime_long_long(testdir, offset):
983595c
     """Support modification dates after 2038 in rewritten files (#4903).