Skip to content

Commit 7c53e40

Browse files
committed
tests: most_recent_context: remove bypass for running empty nested comp
1 parent b2daa94 commit 7c53e40

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

tests/composition/test_composition.py

+3-14
Original file line numberDiff line numberDiff line change
@@ -8458,20 +8458,9 @@ def test_most_recent_context_nested(self, inner_pathway):
84588458
assert outer.most_recent_context.execution_id is None
84598459
assert inner.most_recent_context.execution_id == inner.name
84608460

8461-
if len(inner_pathway) == 0:
8462-
with pytest.raises(
8463-
pnl.MechanismError,
8464-
match=r'Number of inputs \(1\) to inner Output_CIM does not match its number of input_ports \(0\)'
8465-
) as e:
8466-
outer.run()
8467-
if e:
8468-
pytest.xfail(
8469-
reason='running outer comp with empty inner comp fails validation'
8470-
)
8471-
else:
8472-
outer.run()
8473-
assert outer.most_recent_context.execution_id == outer.name
8474-
assert inner.most_recent_context.execution_id == outer.name
8461+
outer.run()
8462+
assert outer.most_recent_context.execution_id == outer.name
8463+
assert inner.most_recent_context.execution_id == outer.name
84758464

84768465
# COMMAND_LINE to bypass check for input passed to nested comp
84778466
c = pnl.Context(source=pnl.ContextFlags.COMMAND_LINE)

0 commit comments

Comments
 (0)