Skip to content

Commit 3cc40f2

Browse files
author
Veronur
committed
correction on test for issue-pandas-dev#34529
1 parent 4967f14 commit 3cc40f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/frame/test_apply.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -785,13 +785,13 @@ def non_reducing_function(val):
785785
df.applymap(func)
786786
assert values == df.a.to_list()
787787

788-
def test_apply_with_byte_string(self):
789-
#GH-34529
788+
def test_apply_with_byte_string(self):
789+
# GH 34529
790790
try:
791791
df = pd.DataFrame(np.array([b'abcd', b'efgh']), columns=['col'])
792792
df.apply(lambda x: x.astype('object'))
793793
except OSError as err:
794-
tm.external_error_raised(a)
794+
tm.external_error_raised(err)
795795

796796
class TestInferOutputShape:
797797
# the user has supplied an opaque UDF where

0 commit comments

Comments
 (0)