Skip to content

Commit e55c787

Browse files
import psutil fails on several travis runs due to missing psutil
1 parent 8d1c168 commit e55c787

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/io/parser/test_common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
from urllib.error import URLError
1212

1313
import numpy as np
14-
import psutil
1514
import pytest
1615

16+
import pandas.util._test_decorators as td
17+
1718
from pandas._libs.tslib import Timestamp
1819
from pandas.errors import DtypeWarning, EmptyDataError, ParserError
1920

@@ -2082,8 +2083,10 @@ def test_integer_precision(all_parsers):
20822083
tm.assert_series_equal(result, expected)
20832084

20842085

2086+
@td.skip_if_no("psutil")
20852087
def test_file_descriptor_leak(all_parsers):
20862088
# GH 31488
2089+
import psutil
20872090
proc = psutil.Process()
20882091
parser = all_parsers
20892092
with tm.ensure_clean() as path:

0 commit comments

Comments
 (0)