diff --git a/myhdl/_compat.py b/myhdl/_compat.py index 43312e58..63818c62 100644 --- a/myhdl/_compat.py +++ b/myhdl/_compat.py @@ -2,6 +2,7 @@ import sys import types PY2 = sys.version_info[0] == 2 +PYPY = hasattr(sys, 'pypy_translation_info') _identity = lambda x: x diff --git a/myhdl/test/core/test_Cosimulation.py b/myhdl/test/core/test_Cosimulation.py index f628f3dd..2d6ad579 100644 --- a/myhdl/test/core/test_Cosimulation.py +++ b/myhdl/test/core/test_Cosimulation.py @@ -32,10 +32,11 @@ random.seed(1) # random, but deterministic MAXLINE = 4096 +import pytest from myhdl import Signal from myhdl._Cosimulation import Cosimulation, CosimulationError, _error -from myhdl._compat import to_bytes +from myhdl._compat import to_bytes, PYPY exe = "python test_Cosimulation.py CosimulationTest" @@ -55,6 +56,7 @@ toXVals = ["X00", "FZ3", "34XZ", "56U"] allSigs = fromSigs.copy() allSigs.update(toSigs) +@pytest.mark.xfail(PYPY, reason="This test does not work on pypy") class CosimulationTest(TestCase): def testWrongExe(self):