Skip to content

Commit fa4537b

Browse files
committed
fix(test): use InteractiveShell to prevent pytest stdin capture error
1 parent 906e470 commit fa4537b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/google-cloud-bigquery/tests/unit/test_magics.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
bigquery_storage = pytest.importorskip("google.cloud.bigquery_storage")
3939
IPython = pytest.importorskip("IPython")
40-
interactiveshell = pytest.importorskip("IPython.terminal.interactiveshell")
40+
interactiveshell = pytest.importorskip("IPython.core.interactiveshell")
4141
tools = pytest.importorskip("IPython.testing.tools")
4242
io = pytest.importorskip("IPython.utils.io")
4343
pandas = pytest.importorskip("pandas")
@@ -58,8 +58,7 @@ def use_local_magics_context(monkeypatch):
5858
@pytest.fixture(scope="session")
5959
def ipython():
6060
config = tools.default_config()
61-
config.TerminalInteractiveShell.simple_prompt = True
62-
shell = interactiveshell.TerminalInteractiveShell.instance(config=config)
61+
shell = interactiveshell.InteractiveShell.instance(config=config)
6362
return shell
6463

6564

0 commit comments

Comments
 (0)