Merge pull request #10826 from NarrativeScience/skip_broken_pandas_test

skip broken pandas test when on python 3.5
This commit is contained in:
Domen Kožar 2015-11-12 20:55:27 +01:00
commit a99a634acf

View File

@ -12059,7 +12059,8 @@ let
bottleneck bottleneck
sqlalchemy9 sqlalchemy9
lxml lxml
html5lib # Disabling this because an upstream dependency, pep8, is broken on v3.5.
(if isPy35 then null else html5lib)
modules.sqlite3 modules.sqlite3
beautifulsoup4 beautifulsoup4
] ++ optional isDarwin pkgs.darwin.adv_cmds; # provides the locale command ] ++ optional isDarwin pkgs.darwin.adv_cmds; # provides the locale command
@ -12083,12 +12084,19 @@ let
# The `-e` flag disables a few problematic tests. # The `-e` flag disables a few problematic tests.
# https://github.com/pydata/pandas/issues/11169 # https://github.com/pydata/pandas/issues/11169
# https://github.com/pydata/pandas/issues/11287 # https://github.com/pydata/pandas/issues/11287
checkPhase = '' # The test_sql checks fail specifically on python 3.5; see here:
# https://github.com/pydata/pandas/issues/11112
checkPhase = let
testsToSkip = ["test_data" "test_excel" "test_html" "test_json"
"test_frequencies" "test_frame"
"test_read_clipboard_infer_excel"] ++
optional isPy35 "test_sql";
in ''
runHook preCheck runHook preCheck
# The flag `-A 'not network'` will disable tests that use internet. # The flag `-A 'not network'` will disable tests that use internet.
# The `-e` flag disables a few problematic tests. # The `-e` flag disables a few problematic tests.
${python.executable} setup.py nosetests -A 'not network' --stop \ ${python.executable} setup.py nosetests -A 'not network' --stop \
-e 'test_data|test_excel|test_html|test_json|test_frequencies|test_frame|test_read_clipboard_infer_excel' --verbosity=3 -e '${concatStringsSep "|" testsToSkip}' --verbosity=3
runHook postCheck runHook postCheck
''; '';