compat: suppress deprecation warnings that are internal or during test.

This commit is contained in:
whitequark 2019-01-26 15:43:00 +00:00
parent 7890c0adc8
commit 4bf80a6e33
3 changed files with 32 additions and 11 deletions

View file

@ -1,10 +1,12 @@
from ...tools import _ignore_deprecated
from ...compat import *
from ...compat.fhdl import verilog
class SimCase:
def setUp(self, *args, **kwargs):
self.tb = self.TestBench(*args, **kwargs)
with _ignore_deprecated():
self.tb = self.TestBench(*args, **kwargs)
def test_to_verilog(self):
verilog.convert(self.tb)