We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d1c168 commit e55c787Copy full SHA for e55c787
pandas/tests/io/parser/test_common.py
@@ -11,9 +11,10 @@
11
from urllib.error import URLError
12
13
import numpy as np
14
-import psutil
15
import pytest
16
+import pandas.util._test_decorators as td
17
+
18
from pandas._libs.tslib import Timestamp
19
from pandas.errors import DtypeWarning, EmptyDataError, ParserError
20
@@ -2082,8 +2083,10 @@ def test_integer_precision(all_parsers):
2082
2083
tm.assert_series_equal(result, expected)
2084
2085
2086
+@td.skip_if_no("psutil")
2087
def test_file_descriptor_leak(all_parsers):
2088
# GH 31488
2089
+ import psutil
2090
proc = psutil.Process()
2091
parser = all_parsers
2092
with tm.ensure_clean() as path:
0 commit comments