Skip to content

Commit 39171ca

Browse files
committed
TST: Fix error in assert_produces_warning.
When I copied this over and sent to @cpcloud, I thought the indentation was wrong and changed it. Turned out I was wrong -- sorry about that! Now all the doctests pass...
1 parent b3f16da commit 39171ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/util/testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,5 +790,5 @@ def assert_produces_warning(expected_warning=Warning, filter_level="always"):
790790
if expected_warning:
791791
assert saw_warning, ("Did not see expected warning of class %r."
792792
% expected_warning.__name__)
793-
assert not extra_warnings, ("Caused unexpected warning(s): %r."
794-
% extra_warnings)
793+
assert not extra_warnings, ("Caused unexpected warning(s): %r."
794+
% extra_warnings)

0 commit comments

Comments
 (0)