File: 32bit_skip_image_molecule.patch

package info (click to toggle)
mdtraj 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,324 kB
  • sloc: python: 25,217; ansic: 6,266; cpp: 5,685; xml: 1,252; makefile: 192
file content (32 lines) | stat: -rw-r--r-- 1,066 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
30
31
32
Author: Drew Parsons
Last-Update: 2022-01-01 18:15:10 +0100
Description: Skip image_molecule test which segfaults on 32-bit systems, see mdtraj Issue #1591

Index: mdtraj/tests/test_trajectory.py
===================================================================
--- mdtraj.orig/tests/test_trajectory.py	2025-08-11 10:57:10.408719447 +0200
+++ mdtraj/tests/test_trajectory.py	2025-08-11 10:57:10.404719379 +0200
@@ -24,6 +24,7 @@
 import sys
 from collections import namedtuple
 from pathlib import Path
+import platform
 
 import numpy as np
 import pytest
@@ -39,6 +40,7 @@
 
 on_win = sys.platform == "win32"
 on_py3 = sys.version_info >= (3, 0)
+on_32bit = (platform.architecture()[0] == '32bit' )
 
 TrajObj = namedtuple("TrajObj", ["fobj", "fext", "fn"])
 file_objs = [
@@ -911,6 +913,7 @@
 
 
 @pytest.mark.skip(reason="Broken, maybe only on Python 3.11")
+@pytest.mark.skipif(on_32bit, reason="image_molecule segfaults on 32-bit systems, see mdtraj Issue #1591")
 def test_image_molecules(get_fn):
     # Load trajectory with periodic box
     t = md.load(