diff --git a/meshmode/interop/nodal_dg.py b/meshmode/interop/nodal_dg.py index 5f43732ccb0dd21e4bf9a06fd9a2a66aee9b78e8..977721afa3edf0cafabfbf15fa3f01a95643a07b 100644 --- a/meshmode/interop/nodal_dg.py +++ b/meshmode/interop/nodal_dg.py @@ -63,6 +63,9 @@ class NodalDGContext(object): return self def __exit__(self, exc_type, exc_val, exc_tb): + # Work around https://github.com/pexpect/pexpect/issues/462 + self.octave._engine.repl.delayafterterminate = 2 + self.octave.exit() REF_AXES = ["r", "s", "t"]