Skip to content

Commit 8133577

Browse files
author
tobyroseman
committed
disable two unit tests on windows/python3
1 parent 74ff478 commit 8133577

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

oss_src/unity/python/sframe/test/test_gl_pickler.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import uuid
66
import shutil
77
import sys
8-
import time
98

109
import pickle
1110
from ..util import cloudpickle
@@ -21,12 +20,8 @@ class GLPicklingTest(unittest.TestCase):
2120

2221
def setUp(self):
2322
self.filename = str(uuid.uuid4())
24-
self.dir_mode = False
2523

2624
def tearDown(self):
27-
if sys.platform == 'win32':
28-
time.sleep(1) # Allow other process to release file lock
29-
3025
if os.path.isdir(self.filename):
3126
shutil.rmtree(self.filename)
3227
elif os.path.exists(self.filename):
@@ -56,6 +51,8 @@ def test_pickling_simple_types(self):
5651
obj_ret = self._load()
5752
self.assertEqual(obj, obj_ret)
5853

54+
@unittest.skipIf(sys.platform == 'win32' and sys.version_info.major == 3,
55+
'See: https://github.com/dato-code/SFrame/issues/176')
5956
def test_pickling_sarray_types(self):
6057

6158
sarray_list = [
@@ -105,6 +102,8 @@ def test_pickling_sgraph_types(self):
105102
assert_sframe_equal(obj.get_vertices(), obj_ret.get_vertices())
106103
assert_sframe_equal(obj.get_edges(), obj_ret.get_edges())
107104

105+
@unittest.skipIf(sys.platform == 'win32' and sys.version_info.major == 3,
106+
'See: https://github.com/dato-code/SFrame/issues/176')
108107
def test_combination_gl_python_types(self):
109108

110109
sg_test_1 = SGraph().add_vertices([

0 commit comments

Comments
 (0)