Skip to content

Commit c57f559

Browse files
committed
Fix PEP8 line length in tests.
1 parent cb1c024 commit c57f559

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/tests/test_strings.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,12 +541,15 @@ def test_replace_literal(self):
541541
result = values.str.replace('f.', 'ba', regex=False)
542542
tm.assert_series_equal(result, exp)
543543

544-
# Cannot do a literal replace if given a callable repl or compiled pattern
544+
# Cannot do a literal replace if given a callable repl or compiled
545+
# pattern
545546
callable_repl = lambda m: m.group(0).swapcase()
546547
compiled_pat = re.compile('[a-z][A-Z]{2}')
547548

548-
pytest.raises(ValueError, values.str.replace, 'abc', callable_repl, regex=False)
549-
pytest.raises(ValueError, values.str.replace, compiled_pat, '', regex=False)
549+
pytest.raises(ValueError, values.str.replace, 'abc', callable_repl,
550+
regex=False)
551+
pytest.raises(ValueError, values.str.replace, compiled_pat, '',
552+
regex=False)
550553

551554
def test_repeat(self):
552555
values = Series(['a', 'b', NA, 'c', NA, 'd'])

0 commit comments

Comments
 (0)