Skip to content

Commit

Permalink
Limit warnings-as-errors to py 3.9, 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Aug 22, 2023
1 parent 254598c commit b75bc5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
image: conda-python
title: AMD64 Conda Python 3.9 Without Pandas
python: 3.9
pytest_args: -W error
- name: conda-python-3.8-pandas-1.0
cache: conda-python-3.8
image: conda-python-pandas
Expand All @@ -79,13 +80,14 @@ jobs:
image: conda-python-pandas
title: AMD64 Conda Python 3.10 Pandas latest
python: "3.10"
pytest_args: -W error
pandas: latest
env:
PYTHON: ${{ matrix.python || 3.8 }}
UBUNTU: ${{ matrix.ubuntu || 20.04 }}
PANDAS: ${{ matrix.pandas || 'latest' }}
NUMPY: ${{ matrix.numpy || 'latest' }}
PYTEST_ARGS: -W error
PYTEST_ARGS: ${{ matrix.pytest_args || '' }}
steps:
- name: Checkout Arrow
uses: actions/checkout@v3
Expand Down
5 changes: 1 addition & 4 deletions python/pyarrow/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# under the License.

import pytest
import warnings

import pyarrow as pa
from pyarrow import Codec
Expand Down Expand Up @@ -121,9 +120,7 @@
pass

try:
with warnings.catch_warnings():
warnings.simplefilter("ignore")
import pandas # noqa
import pandas # noqa
defaults['pandas'] = True
except ImportError:
defaults['nopandas'] = True
Expand Down

0 comments on commit b75bc5d

Please sign in to comment.