stfc / fparser

This project maintains and develops a Fortran parser called fparser2 written purely in Python which supports Fortran 2003 and some Fortran 2008. A legacy parser fparser1 is also available but is not supported. The parsers were originally part of the f2py project by Pearu Peterson.
https://fparser.readthedocs.io
Other
64 stars 29 forks source link

Test failures under python 3.5.4 #87

Closed arporter closed 5 years ago

arporter commented 6 years ago

I get test failures (related to the logging functionality) when I run the test suite under Python 3.5.4. Travis is using 3.6 and everything passes there.

pelson commented 5 years ago

Double checked with a fresh install:

itpe@eld005:> pytest src/fparser/
================================================================ test session starts =================================================================
platform linux -- Python 3.5.6, pytest-4.3.0, py-1.8.0, pluggy-0.9.0
rootdir: /data/local/itpe/fparser, inifile:
plugins: xdist-1.26.1, forked-1.0.2
collected 1869 items                                                                                                                                 

src/fparser/common/tests/test_base_classes.py ...                                                                                              [  0%]
src/fparser/common/tests/test_readfortran.py .................................                                                                 [  1%]
src/fparser/common/tests/test_sourceinfo.py .................................................................................................. [  7%]
.............................................................................................................................................. [ 14%]
.............................................................................................................................................. [ 22%]
.............................................................................................................................................. [ 29%]
........                                                                                                                                       [ 30%]
src/fparser/common/tests/test_splitline.py ...                                                                                                 [ 30%]
src/fparser/common/tests/test_utils.py .....                                                                                                   [ 30%]
src/fparser/one/tests/test_block_stmts.py ...                                                                                                  [ 30%]
src/fparser/one/tests/test_do_block_r814.py .................................................................................................. [ 36%]
.............................................................................................................................................. [ 43%]
.............................................................................................................................................. [ 51%]
.............................................................................................................................................. [ 59%]
............................................................................................................................                   [ 65%]
src/fparser/one/tests/test_parsefortran.py .......                                                                                             [ 66%]
src/fparser/one/tests/test_parser.py ...............................................................................                           [ 70%]
src/fparser/one/tests/test_select.py ....x......                                                                                               [ 70%]
src/fparser/tests/test_api.py .....                                                                                                            [ 71%]
src/fparser/tests/test_blank_lines.py .                                                                                                        [ 71%]
src/fparser/tests/test_comment.py ..                                                                                                           [ 71%]
src/fparser/tests/test_f90comment_f77source.py .                                                                                               [ 71%]
src/fparser/tests/test_functional.py .                                                                                                         [ 71%]
src/fparser/tests/test_issue10.py .                                                                                                            [ 71%]
src/fparser/tests/test_issue11.py x                                                                                                            [ 71%]
src/fparser/tests/test_issue23.py ..                                                                                                           [ 71%]
src/fparser/tests/test_issue25.py .                                                                                                            [ 71%]
src/fparser/tests/test_issue26.py .                                                                                                            [ 71%]
src/fparser/tests/test_issue33.py .                                                                                                            [ 71%]
src/fparser/tests/test_issue4.py .....                                                                                                         [ 72%]
src/fparser/tests/test_issue5.py ..                                                                                                            [ 72%]
src/fparser/tests/test_issue7.py ....                                                                                                          [ 72%]
src/fparser/tests/test_issue8.py ...                                                                                                           [ 72%]
src/fparser/tests/test_issue9.py .                                                                                                             [ 72%]
src/fparser/tests/test_mod_private.py ..                                                                                                       [ 72%]
src/fparser/two/tests/test_bases.py ....                                                                                                       [ 72%]
src/fparser/two/tests/test_comments.py ....xx......                                                                                            [ 73%]
src/fparser/two/tests/test_fortran2003.py .................................................................................................... [ 78%]
..................................................................................................................................             [ 85%]
src/fparser/two/tests/test_parser.py .                                                                                                         [ 85%]
src/fparser/two/tests/test_pattern_tools.py .......                                                                                            [ 86%]
src/fparser/two/tests/test_scripts.py .........                                                                                                [ 86%]
src/fparser/two/tests/test_utils.py ...                                                                                                        [ 86%]
src/fparser/two/tests/fortran2003/test_char_literal_constant_r427.py ....                                                                      [ 87%]
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py .......                                                                [ 87%]
src/fparser/two/tests/fortran2003/test_cray_pointee_array_spec.py ...                                                                          [ 87%]
src/fparser/two/tests/fortran2003/test_cray_pointee_decl.py ...                                                                                [ 87%]
src/fparser/two/tests/fortran2003/test_cray_pointer_decl.py ......                                                                             [ 88%]
src/fparser/two/tests/fortran2003/test_cray_pointer_stmt.py .......                                                                            [ 88%]
src/fparser/two/tests/fortran2003/test_data_edit_desc_c1002.py .........                                                                       [ 88%]
src/fparser/two/tests/fortran2003/test_defined_operator_r311.py ..                                                                             [ 89%]
src/fparser/two/tests/fortran2003/test_defined_operators_r703_r723.py ......                                                                   [ 89%]
src/fparser/two/tests/fortran2003/test_derived_type_stmt_r430.py .....                                                                         [ 89%]
src/fparser/two/tests/fortran2003/test_executable_construct_r213.py ........                                                                   [ 90%]
src/fparser/two/tests/fortran2003/test_extended_intrinsic_op_r312.py ..                                                                        [ 90%]
src/fparser/two/tests/fortran2003/test_forall_header_r754.py .....                                                                             [ 90%]
src/fparser/two/tests/fortran2003/test_forall_stmt_r759.py ......                                                                              [ 90%]
src/fparser/two/tests/fortran2003/test_format_item_c1002.py ....                                                                               [ 91%]
src/fparser/two/tests/fortran2003/test_format_item_list.py ......                                                                              [ 91%]
src/fparser/two/tests/fortran2003/test_format_item_r1003.py ........                                                                           [ 91%]
src/fparser/two/tests/fortran2003/test_format_specification_r1002.py .........                                                                 [ 92%]
src/fparser/two/tests/fortran2003/test_hollerith_item.py ......                                                                                [ 92%]
src/fparser/two/tests/fortran2003/test_include_filename.py ..                                                                                  [ 92%]
src/fparser/two/tests/fortran2003/test_include_statement.py .......                                                                            [ 93%]
src/fparser/two/tests/fortran2003/test_kindselector_r404.py .................x                                                                 [ 94%]
src/fparser/two/tests/fortran2003/test_main_program_r1101.py ....                                                                              [ 94%]
src/fparser/two/tests/fortran2003/test_name_r304.py ..                                                                                         [ 94%]
src/fparser/two/tests/fortran2003/test_position_edit_desc_r1013.py .......                                                                     [ 94%]
src/fparser/two/tests/fortran2003/test_program_r201.py ..xx...x...xx........                                                                   [ 95%]
src/fparser/two/tests/fortran2003/test_program_stmt_r1102.py ..                                                                                [ 95%]
src/fparser/two/tests/fortran2003/test_specific_binding_r451.py ...                                                                            [ 96%]
src/fparser/two/tests/fortran2003/test_usestmt_r1109.py .............                                                                          [ 96%]
src/fparser/two/tests/fortran2008/test_end_submodule_stmt_r1119.py ......                                                                      [ 97%]
src/fparser/two/tests/fortran2008/test_parent_identifier_r1118.py .......                                                                      [ 97%]
src/fparser/two/tests/fortran2008/test_program_unit_r202.py ...                                                                                [ 97%]
src/fparser/two/tests/fortran2008/test_submodule_r1116.py ...........                                                                          [ 98%]
src/fparser/two/tests/fortran2008/test_submodule_stmt_r1117.py ...........                                                                     [ 98%]
src/fparser/two/tests/utils/test_blockbase.py .                                                                                                [ 98%]
src/fparser/two/tests/utils/test_bracket_base.py .........                                                                                     [ 99%]
src/fparser/two/tests/utils/test_stringbase_upper.py ........                                                                                  [ 99%]
src/fparser/two/tests/utils/test_wordclsbase.py .x..                                                                                           [100%]

====================================================== 1858 passed, 11 xfailed in 22.83 seconds ======================================================

Doesn't seem to be an issue any more so you can probably close this one.

arporter commented 5 years ago

Thanks to @pelson, closing this issue.