From b4f6fc90db36cfa7aef74b4fb00656b3832bd859 Mon Sep 17 00:00:00 2001 From: Shirong_Wang Date: Fri, 10 Jul 2026 22:04:30 +0800 Subject: [PATCH] mark some slow tests --- pyscf/lno/test/test_ulnoccsd.py | 2 +- pyscf/pbc/pwscf/test/test_krccsd.py | 2 +- pyscf/pbc/scf/test/test_khf_stagger.py | 4 ++-- pyscf/tdscf/test/test_krylov.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyscf/lno/test/test_ulnoccsd.py b/pyscf/lno/test/test_ulnoccsd.py index 50faad27a..5090517ff 100644 --- a/pyscf/lno/test/test_ulnoccsd.py +++ b/pyscf/lno/test/test_ulnoccsd.py @@ -63,7 +63,7 @@ def tearDownClass(cls): cls.mol.stdout.close() del cls.mol, cls.mf, cls.ecano, cls.frozen - def test_ulno_pm_by_thresh(self): + def test_ulno_pm_by_thresh_slow(self): mol = self.mol mf = self.mf frozen = self.frozen diff --git a/pyscf/pbc/pwscf/test/test_krccsd.py b/pyscf/pbc/pwscf/test/test_krccsd.py index 3d205c5d6..296e672b5 100644 --- a/pyscf/pbc/pwscf/test/test_krccsd.py +++ b/pyscf/pbc/pwscf/test/test_krccsd.py @@ -91,7 +91,7 @@ def _run_test(self, atom, a, basis, pseudo, ke_cutoff, kmesh, exxdiv, pwcc.kernel() assert_allclose(pwcc.e_corr, -0.03234330656841895, atol=1.e-4, rtol=0) - def test_krccsd(self): + def test_krccsd_slow(self): ke_cutoff = 50 basis = "gth-szv" pseudo = "gth-pade" diff --git a/pyscf/pbc/scf/test/test_khf_stagger.py b/pyscf/pbc/scf/test/test_khf_stagger.py index 3c9487406..d3350f382 100644 --- a/pyscf/pbc/scf/test/test_khf_stagger.py +++ b/pyscf/pbc/scf/test/test_khf_stagger.py @@ -118,7 +118,7 @@ def test_222_h2_krks_gdf_nonscf(self): self.assertAlmostEqual(etot, -1.133718254945507, 7) self.assertAlmostEqual(ek_stagger, -0.5678938270891276, 7) - def test_222_h2_fftdf_splitscf(self): + def test_222_h2_fftdf_splitscf_slow(self): cell = build_h2_cell() nk = [2, 2, 2] etot, ek_stagger = run_khf_fftdf(cell, nk, stagger_type="split-scf") @@ -127,7 +127,7 @@ def test_222_h2_fftdf_splitscf(self): ek_stagger, -0.5690576097072846, 7 ) # QChem value: -0.5690575951 - def test_222_h2_fftdf_regular(self): + def test_222_h2_fftdf_regular_slow(self): cell = build_h2_cell() nk = [2, 2, 2] etot, ek_stagger = run_khf_fftdf(cell, nk, stagger_type="regular", kernel=False) diff --git a/pyscf/tdscf/test/test_krylov.py b/pyscf/tdscf/test/test_krylov.py index 618396573..e7368690c 100644 --- a/pyscf/tdscf/test/test_krylov.py +++ b/pyscf/tdscf/test/test_krylov.py @@ -67,7 +67,7 @@ def matrix_vector_product_single(x): self.places_single = 3 - def test_krylov_eigenvalue(self): + def test_krylov_eigenvalue_slow(self): """Test Krylov solver for eigenvalue problem""" _, eigenvalues, eigenvectors = krylov_solver( matrix_vector_product=self.matrix_vector_product,