Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 69bb133

Browse files
skip test if no ipython
1 parent 1642b38 commit 69bb133

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/system/small/test_magics.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
import pytest
1415

15-
from IPython.testing.globalipapp import get_ipython
16-
from IPython.utils.capture import capture_output
1716
import pandas as pd
1817
import pytest
1918

2019
import bigframes
2120
import bigframes.pandas as bpd
2221

22+
IPython = pytest.importorskip("IPython")
23+
24+
if IPython:
25+
from IPython.testing.globalipapp import get_ipython
26+
from IPython.utils.capture import capture_output
27+
2328
MAGIC_NAME = "bqsql"
2429

2530

0 commit comments

Comments
 (0)