pyodide/test/test_pandas.py

19 lines
577 B
Python
Raw Normal View History

2018-06-23 11:53:56 +00:00
import pytest
2018-08-17 09:57:42 +00:00
def test_pandas(selenium, request):
if selenium.browser == 'chrome':
2018-08-17 09:57:42 +00:00
request.applymarker(pytest.mark.xfail(
run=False, reason='chrome not supported'))
2018-05-04 17:09:32 +00:00
selenium.load_package("pandas")
2018-05-09 18:42:29 +00:00
assert len(selenium.run("import pandas\ndir(pandas)")) == 179
2018-08-17 09:57:42 +00:00
def test_extra_import(selenium, request):
2018-08-20 20:44:08 +00:00
if selenium.browser == 'chrome':
2018-08-17 09:57:42 +00:00
request.applymarker(pytest.mark.xfail(
run=False, reason='chrome not supported'))
2018-05-23 11:23:49 +00:00
selenium.load_package("pandas")
selenium.run("from pandas import Series, DataFrame, Panel")