Remove everything deprecated in nmigen 0.2.
This commit is contained in:
parent
3a4576e033
commit
23758e30bc
2 changed files with 5 additions and 27 deletions
|
|
@ -547,9 +547,8 @@ class SimulatorIntegrationTestCase(FHDLTestCase):
|
|||
|
||||
def test_add_process_wrong_generator(self):
|
||||
with self.assertSimulation(Module()) as sim:
|
||||
with self.assertWarns(DeprecationWarning,
|
||||
msg="instead of generators, use generator functions as processes; "
|
||||
"this allows the simulator to be repeatedly reset"):
|
||||
with self.assertRaisesRegex(TypeError,
|
||||
r"^Cannot add a process <.+?> because it is not a generator function$"):
|
||||
def process():
|
||||
yield Delay()
|
||||
sim.add_process(process())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue