From 040dc210a293688dd462e2a517089d2247a83e70 Mon Sep 17 00:00:00 2001 From: dours Date: Thu, 6 Oct 2022 14:51:55 +0300 Subject: [PATCH] support and enable a test --- .../py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala | 2 +- .../compound-statements/class/multiple-inheritance.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala b/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala index cc5db38cd..d6ea1db2d 100644 --- a/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala +++ b/transpiler/src/main/scala/org/polystat/py2eo/transpiler/PrintLinearizedMutableEOWithCage.scala @@ -77,7 +77,7 @@ object PrintLinearizedMutableEOWithCage { case _ : ImportModule => List() case _ : ImportSymbol => List() case _ : ImportAllSymbols => List() - case ClassDef(name, bases, body, decorators, ann) if bases.length <= 1 && decorators.l.isEmpty => + case ClassDef(name, bases, body, decorators, ann) if decorators.l.isEmpty => val Suite(l0, _) = GenericStatementPasses.simpleProcStatement(GenericStatementPasses.unSuite)(body) val l = l0.filter{ case Pass(_) => false case _ => true } val init : Option[FuncDef] = l0 diff --git a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml index af1bd939c..5f6c19260 100644 --- a/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml +++ b/transpiler/src/test/resources/org/polystat/py2eo/transpiler/simple-tests/compound-statements/class/multiple-inheritance.yaml @@ -1,4 +1,4 @@ -enabled: False +enabled: True python: | def multiInh(): class c: