From 1d75616c323c4f13e6a582f990ce001d7ad75d59 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Sat, 21 Jan 2023 08:42:44 -0800 Subject: [PATCH 1/3] CI: Adjust test to fix wheel builders --- pandas/tests/io/test_stata.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py index 0a9ed30dd55d6..69b9cbb7d6a26 100644 --- a/pandas/tests/io/test_stata.py +++ b/pandas/tests/io/test_stata.py @@ -1802,10 +1802,12 @@ def test_encoding_latin1_118(self, datapath): so the fallback encoding of latin-1 is being used. This can happen when a file has been incorrectly encoded by Stata or some other software. You should verify the string values returned are correct.""" + # Move path outside of read_stata, or else assert_produces_warning + # will block pytests skip mechanism from triggering (failing the test) + # if the path is not present + path = datapath("io", "data", "stata", "stata1_encoding_118.dta") with tm.assert_produces_warning(UnicodeWarning) as w: - encoded = read_stata( - datapath("io", "data", "stata", "stata1_encoding_118.dta") - ) + encoded = read_stata(path) assert len(w) == 151 assert w[0].message.args[0] == msg From 99b479b35e0910da4aced98a1022bee488b398fe Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Wed, 25 Jan 2023 17:44:40 -0500 Subject: [PATCH 2/3] Update wheels.yml --- .github/workflows/wheels.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 12e8a89cd0382..f05bb25916d02 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -86,7 +86,8 @@ jobs: activate-environment: test channels: conda-forge, anaconda channel-priority: true - mamba-version: "*" + # mamba fails to solve, also we really don't need this since we're just installing python + # mamba-version: "*" - name: Test wheels (Windows 64-bit only) if: ${{ matrix.buildplat[1] == 'win_amd64' }} @@ -154,7 +155,8 @@ jobs: python-version: '3.8' channels: conda-forge channel-priority: true - mamba-version: "*" + # mamba fails to solve, also we really don't need this since we're just installing python + #mamba-version: "*" - name: Build sdist run: | From a01db775c7dd438c62f5766bf9b40d1d238a5342 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Wed, 25 Jan 2023 20:57:51 -0500 Subject: [PATCH 3/3] style --- .github/workflows/wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f05bb25916d02..665aeb6bc7f87 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -156,7 +156,7 @@ jobs: channels: conda-forge channel-priority: true # mamba fails to solve, also we really don't need this since we're just installing python - #mamba-version: "*" + # mamba-version: "*" - name: Build sdist run: |