Restored ability to build on Python 2

This commit is contained in:
Matthias Koefferlein
2022-12-28 23:50:38 +01:00
parent 16cd4276b7
commit ca32b34dff
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -3077,6 +3077,11 @@ class BasicTest(unittest.TestCase):
# fallback to __rmul__ for not implemented __mul__
def test_90(self):
# skip this test for Python 2
if sys.version_info < (3, 0):
return
class RMulObject:
def __init__(self, factor):
self.factor = factor