diff --git a/src/mailman/commands/tests/test_cli_shell.py b/src/mailman/commands/tests/test_cli_shell.py
--- a/src/mailman/commands/tests/test_cli_shell.py
+++ b/src/mailman/commands/tests/test_cli_shell.py
@@ -89,5 +89,8 @@
@configuration('shell', use_ipython='yes')
def test_start_ipython1(self):
+ if os.environ.get('MAILMAN_SKIP_BRITTLE_CLI_TESTS') == '1':
+ self.skipTest(
+ 'Legacy IPython.frontend import path; skip in rpmbuild')
mock = MagicMock()
with hacked_sys_modules('IPython.frontend.terminal.embed', mock):
self._command.invoke(shell, ('--interactive',))