Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5817

[Python] Use pytest marks for Flight test to avoid silently skipping unit tests due to import failures

    XMLWordPrintableJSON

Details

    Description

      The approach used to determine whether or not Flight has been built will fail silently if the extension is built but there is an ImportError caused by linking or other issues

      https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_flight.py#L35

      We should use the same "auto" approach as other optional components (see https://github.com/apache/arrow/blob/master/python/pyarrow/tests/conftest.py#L40) with the option for forced opt-in (so that ImportError does not cause silently skipping) so that --flight will force the tests to run if we expect them to work

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h