Skip to content

Commit 1269a3b

Browse files
authored
CI: Adjust test to fix wheel builders (#50934)
* CI: Adjust test to fix wheel builders * Update wheels.yml * style
1 parent 588a749 commit 1269a3b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
activate-environment: test
8787
channels: conda-forge, anaconda
8888
channel-priority: true
89-
mamba-version: "*"
89+
# mamba fails to solve, also we really don't need this since we're just installing python
90+
# mamba-version: "*"
9091

9192
- name: Test wheels (Windows 64-bit only)
9293
if: ${{ matrix.buildplat[1] == 'win_amd64' }}
@@ -154,7 +155,8 @@ jobs:
154155
python-version: '3.8'
155156
channels: conda-forge
156157
channel-priority: true
157-
mamba-version: "*"
158+
# mamba fails to solve, also we really don't need this since we're just installing python
159+
# mamba-version: "*"
158160

159161
- name: Build sdist
160162
run: |

pandas/tests/io/test_stata.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,10 +1802,12 @@ def test_encoding_latin1_118(self, datapath):
18021802
so the fallback encoding of latin-1 is being used. This can happen when a file
18031803
has been incorrectly encoded by Stata or some other software. You should verify
18041804
the string values returned are correct."""
1805+
# Move path outside of read_stata, or else assert_produces_warning
1806+
# will block pytests skip mechanism from triggering (failing the test)
1807+
# if the path is not present
1808+
path = datapath("io", "data", "stata", "stata1_encoding_118.dta")
18051809
with tm.assert_produces_warning(UnicodeWarning) as w:
1806-
encoded = read_stata(
1807-
datapath("io", "data", "stata", "stata1_encoding_118.dta")
1808-
)
1810+
encoded = read_stata(path)
18091811
assert len(w) == 151
18101812
assert w[0].message.args[0] == msg
18111813

0 commit comments

Comments
 (0)