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):