8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a843465 commit 46ca395Copy full SHA for 46ca395
pandas/tests/series/test_duplicates.py
@@ -76,12 +76,12 @@ def __init__(self, val):
76
def __ne__(self, other):
77
raise Exception("NEQ not supported")
78
79
- li = [Foo(i) for i in range(5)]
80
- s = Series(li, index=[i for i in range(5)])
81
- _, err = capsys.readouterr()
+ with capsys.disabled():
+ li = [Foo(i) for i in range(5)]
+ s = Series(li, index=[i for i in range(5)])
82
s.is_unique
83
84
- assert len(err) == 0
+ captured = capsys.readouterr()
+ assert len(captured.err) == 0
85
86
87
@pytest.mark.parametrize(
0 commit comments