Skip to content

Commit 79ada03

Browse files
appease linter
1 parent 69bb133 commit 79ada03

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/system/small/test_magics.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
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
15-
1614
import pandas as pd
1715
import pytest
1816

@@ -21,16 +19,15 @@
2119

2220
IPython = pytest.importorskip("IPython")
2321

24-
if IPython:
25-
from IPython.testing.globalipapp import get_ipython
26-
from IPython.utils.capture import capture_output
2722

2823
MAGIC_NAME = "bqsql"
2924

3025

3126
@pytest.fixture(scope="module")
3227
def ip():
3328
"""Provides a persistent IPython shell instance for the test session."""
29+
from IPython.testing.globalipapp import get_ipython
30+
3431
shell = get_ipython()
3532
shell.extension_manager.load_extension("bigframes")
3633
return shell
@@ -64,6 +61,8 @@ def test_magic_select_lit_dry_run(ip):
6461

6562

6663
def test_magic_select_lit_display(ip):
64+
from IPython.utils.capture import capture_output
65+
6766
bigframes.close_session()
6867

6968
cell_body = "SELECT 3"

0 commit comments

Comments
 (0)