From 3e3e8d4ba366b94e6ed90a9957d303797d05ee23 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 11 Sep 2023 23:58:38 +0200 Subject: [PATCH] Fixed pymod test --- testdata/python/dbPCells.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testdata/python/dbPCells.py b/testdata/python/dbPCells.py index 14ca10e5e..e51c648fd 100644 --- a/testdata/python/dbPCells.py +++ b/testdata/python/dbPCells.py @@ -166,7 +166,8 @@ class DBPCellTests(unittest.TestCase): def test_0(self): # PCellDeclarationHelper is inside "pya.__all__" - self.assertEqual("PCellDeclarationHelper" in pya.__all__, True) + if hasattr(pya, "__all__"): + self.assertEqual("PCellDeclarationHelper" in pya.__all__, True) def test_1(self):