diff --git a/tests/test_abacus_pw_scf.py b/tests/test_abacus_pw_scf.py index 20751f819..0d2bdef5b 100644 --- a/tests/test_abacus_pw_scf.py +++ b/tests/test_abacus_pw_scf.py @@ -158,7 +158,7 @@ def test_noforcestress_job(self): # check below will not throw error system_ch4 = dpdata.LabeledSystem("abacus.scf", fmt="abacus/scf") # check the returned force is empty - self.assertFalse(system_ch4.data["forces"]) + self.assertFalse(system_ch4.data["forces"].size) self.assertTrue("virials" not in system_ch4.data) # test append self system_ch4.append(system_ch4)