File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 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-
1614import pandas as pd
1715import pytest
1816
2119
2220IPython = pytest .importorskip ("IPython" )
2321
24- if IPython :
25- from IPython .testing .globalipapp import get_ipython
26- from IPython .utils .capture import capture_output
2722
2823MAGIC_NAME = "bqsql"
2924
3025
3126@pytest .fixture (scope = "module" )
3227def 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
6663def 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"
You can’t perform that action at this time.
0 commit comments