Allow a memory-heavy test to run out of memory
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sun, 1 Sep 2024 10:18:24 +0000 (11:18 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 1 Sep 2024 10:18:24 +0000 (11:18 +0100)
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 7a5ceff54d265db1f6d05e12a43e0dc583fc55ba..d03f0f80f003a0b7cac79bce3fd6a8b756dea49b 100644 (file)
@@ -2,6 +2,7 @@ from statsmodels.compat.pandas import QUARTER_END
 
 import os
 
+import sys
 import numpy as np
 from numpy.testing import assert_allclose
 import pandas as pd
@@ -405,7 +406,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]