Fixed pymod test

This commit is contained in:
Matthias Koefferlein 2023-09-11 23:58:38 +02:00
parent b360df16e3
commit 3e3e8d4ba3
1 changed files with 2 additions and 1 deletions

View File

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