File: Skip-test-that-fails-on-32-bit.patch

package info (click to toggle)
python-asdf 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,032 kB
  • sloc: python: 24,068; makefile: 123
file content (29 lines) | stat: -rw-r--r-- 919 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Ole Streicher <olebole@debian.org>
Date: Sun, 17 Aug 2025 20:07:13 +0200
Subject: Skip test that fails on 32 bit

---
 asdf/_tests/_block/test_reader.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/asdf/_tests/_block/test_reader.py b/asdf/_tests/_block/test_reader.py
index f273a51..f7d5280 100644
--- a/asdf/_tests/_block/test_reader.py
+++ b/asdf/_tests/_block/test_reader.py
@@ -2,6 +2,7 @@ import contextlib
 import io
 import mmap
 import os
+import sys
 
 import numpy as np
 import pytest
@@ -86,6 +87,8 @@ def test_read_valid_padding(padding, padding_byte):
         check(read_blocks(fd))
 
 
+@pytest.mark.xfail(condition=(sys.maxsize <= 2**32),
+                   reason="Test doesn't work on 32 bit")
 @pytest.mark.parametrize("padding_byte", (b"\xd3BLK", b" \xd3BLK"))
 def test_read_invalid_padding(padding_byte):
     with gen_blocks(padding=1, padding_byte=padding_byte) as (fd, check):