From 964861ff03c3be66f2d1cd4616dadf43f1da2af8 Mon Sep 17 00:00:00 2001 From: SteveDoyle2 Date: Thu, 17 Oct 2024 22:08:41 -0700 Subject: [PATCH] fixing test --- pyNastran/bdf/cards/test/test_aero.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pyNastran/bdf/cards/test/test_aero.py b/pyNastran/bdf/cards/test/test_aero.py index 70c1bea7d..c89af4f6e 100644 --- a/pyNastran/bdf/cards/test/test_aero.py +++ b/pyNastran/bdf/cards/test/test_aero.py @@ -1262,16 +1262,22 @@ def test_caero1_1(self): caero1l = CAERO1(eid, pid, igid, p1, x12, p4, x43, cp=cp, nspan=nspan, lspan=lspan, nchord=nchord, lchord=lchord, comment='caero1') - with self.assertRaises(AssertionError): + with self.assertRaises(ValueError): caero1l.validate() + caero1l.p1 = np.array([0., 0., 0.]) + #with self.assertRaises(AssertionError): + caero1l.validate() p1 = [0., 0., 0.] p4 = [1., 2., 3., 4.] caero1m = CAERO1(eid, pid, igid, p1, x12, p4, x43, cp=cp, nspan=nspan, lspan=lspan, nchord=nchord, lchord=lchord, comment='caero1') - with self.assertRaises(AssertionError): + with self.assertRaises(ValueError): caero1m.validate() + caero1m.p4 = np.array([0., 2., 3.]) + # with self.assertRaises(AssertionError): + caero1m.validate() p4 = [1., 2., 3.] eid = 8