Remove everything deprecated in nmigen 0.2.

This commit is contained in:
whitequark 2020-07-06 16:01:49 +00:00
parent 3a4576e033
commit 23758e30bc
2 changed files with 5 additions and 27 deletions

View file

@ -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())