Skip to content

Commit 78aed29

Browse files
committed
addressing #17, disable the file handle test on python3.6 because no file handle was left open even though the file was open for reading.
1 parent 55363d8 commit 78aed29

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: tests/test_bug_fixes.py

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
"""
66
import os
7+
import sys
78
import datetime
89
import psutil
910
from textwrap import dedent
@@ -14,6 +15,9 @@
1415
from platform import python_implementation
1516

1617

18+
PY36_ABOVE = sys.version_info[0] == 2 && sys.version_info[1] >= 6
19+
20+
1721
def test_pyexcel_issue_4():
1822
"""pyexcel issue #4"""
1923
indices = [
@@ -140,6 +144,8 @@ def test_issue_8_hidden_sheet_2():
140144
def test_issue_14_xlsx_file_handle():
141145
if python_implementation == 'PyPy':
142146
return
147+
if PY36_ABOVE:
148+
return
143149
proc = psutil.Process()
144150
test_file = os.path.join("tests", "fixtures", "hidden_sheets.xlsx")
145151
open_files_l1 = proc.open_files()

0 commit comments

Comments
 (0)