Allow a memory-heavy test to run out of memory
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sun, 21 Jan 2024 09:38:29 +0000 (09:38 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 21 Jan 2024 09:38:29 +0000 (09:38 +0000)
Failed in 0.14.0 on armel,armhf,mipsel (but not i386)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name xfail_out_of_memory.patch

statsmodels/tsa/statespace/tests/test_dynamic_factor_mq_frbny_nowcast.py

index 537584841bf33da51be5521327f9dff79998a57c..77bac66878cdf166f2e1467a81284253f877cf63 100644 (file)
@@ -1,4 +1,5 @@
 import os
+import sys
 import numpy as np
 import pandas as pd
 from scipy.io import matlab
@@ -400,7 +401,7 @@ def test_emstep_methods_nonmissing(matlab_results, k_factors, factor_orders,
 
 
 @pytest.mark.parametrize("run", ['news_112', 'news_222', 'news_block_112',
-                                 'news_block_222'])
+                                 pytest.param('news_block_222',marks=pytest.mark.xfail(condition=sys.maxsize<2**33,reason="too memory-heavy for armel,armhf,mipsel",raises=MemoryError,strict=False))])
 def test_news(matlab_results, run):
     endog_M, endog_Q = matlab_results[:2]
     results = matlab_results[2][run]