From 8cc5f23dcb81f8fd2ccb1237e190c08c96706991 Mon Sep 17 00:00:00 2001 From: nturley Date: Sat, 7 Nov 2015 21:53:35 -0600 Subject: [PATCH] fix test 134 wrong number and add xfail --- myhdl/test/bugs/test_issue134.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/myhdl/test/bugs/test_issue134.py b/myhdl/test/bugs/test_issue134.py index 3459da41..ca219e6a 100644 --- a/myhdl/test/bugs/test_issue134.py +++ b/myhdl/test/bugs/test_issue134.py @@ -4,6 +4,7 @@ can get renamed to the name of the argument. When the function is called multiple times, this causes name collisions """ from __future__ import absolute_import +import pytest from myhdl import * from myhdl.conversion import verify @@ -18,12 +19,13 @@ def invert(sigin, sigout): sigout.next = not sigin return foo -def issue_133(ab_in, ab_out): +def issue_134(ab_in, ab_out): """ Instantiate an inverter for each signal """ inverta = invert(ab_in.a, ab_out.a) invertb = invert(ab_in.b, ab_out.b) return inverta, invertb -def test_issue_133(): +@pytest.mark.xfail +def test_issue_134(): """ check for port name collision""" - assert verify(issue_133, AB(), AB()) == 0 + assert verify(issue_134, AB(), AB()) == 0