Skip to content

Commit 5a1b8ee

Browse files
committed
remove record
1 parent 51f77b5 commit 5a1b8ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ If your change involves checking that a warning is actually emitted, use
885885
886886
We prefer this to the ``pytest.warns`` context manager because ours checks that the warning's
887887
stacklevel is set correctly. The stacklevel is what ensure the *user's* file name and line number
888-
is printed in the warning, rather than something internal to pandas. It represents the nubmer of
888+
is printed in the warning, rather than something internal to pandas. It represents the number of
889889
function calls from user code (e.g. ``df.some_operation()``) to the function that actually emits
890890
the warning.
891891

pandas/core/arrays/integer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def cmp_method(self, other):
512512

513513
# numpy will show a DeprecationWarning on invalid elementwise
514514
# comparisons, this will raise in the future
515-
with warnings.catch_warnings(record=True):
515+
with warnings.catch_warnings():
516516
warnings.filterwarnings("ignore", "elementwise", FutureWarning)
517517
with np.errstate(all='ignore'):
518518
result = op(self._data, other)

0 commit comments

Comments
 (0)