File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def reset(self):
33
33
34
34
def src_loc (self ):
35
35
coroutine = self .coroutine
36
- while coroutine .gi_yieldfrom is not None :
36
+ while coroutine .gi_yieldfrom is not None and inspect . isgenerator ( coroutine . gi_yieldfrom ) :
37
37
coroutine = coroutine .gi_yieldfrom
38
38
if inspect .isgenerator (coroutine ):
39
39
frame = coroutine .gi_frame
Original file line number Diff line number Diff line change @@ -118,12 +118,15 @@ def reset(self):
118
118
def _real_step (self ):
119
119
while True :
120
120
self ._state .eval ()
121
+
122
+ ran = False
121
123
for process in self ._processes :
122
124
if process .runnable :
123
125
process .runnable = False
124
126
process .run ()
127
+ ran = True
125
128
126
- if not self ._state .commit ():
129
+ if not self ._state .commit () and not ran :
127
130
break
128
131
129
132
for vcd_writer , vcd_file in self ._vcd_writers :
You can’t perform that action at this time.
0 commit comments