Skip to content

Commit 7f744f2

Browse files
iindykcopybara-github
authored andcommitted
Skep new experimental functionality tests failing on macos.
PiperOrigin-RevId: 836667149
1 parent 757c679 commit 7f744f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

grain/_src/python/dataset/transformations/prefetch_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,6 @@ def test_no_mem_leak(self):
11791179
for _ in range(5):
11801180
_ = next(it)
11811181

1182-
@absltest.skipIf(platform.system() == 'Darwin', 'Fails on macos-14 runner.')
11831182
@parameterized.parameters([True, False])
11841183
def test_no_mem_leak_with_double_prefetch(self, close: bool):
11851184
ds = (
@@ -1200,6 +1199,7 @@ def test_no_mem_leak_with_double_prefetch(self, close: bool):
12001199
if close:
12011200
it.close() # pytype: disable=attribute-error
12021201

1202+
@absltest.skipIf(platform.system() == 'Darwin', 'Fails on macos-14 runner.')
12031203
@parameterized.parameters([True, False])
12041204
def test_early_break_continues_prefetching(self, close: bool):
12051205
count = 0

grain/_src/python/variable_size_queue_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
"""Tests for variable size queue implementations."""
1515

16+
import platform
1617
import queue
1718
import threading
1819
import time
@@ -245,6 +246,7 @@ def _blocking_put():
245246
self.assertEqual(q.get(), 3)
246247
t.join()
247248

249+
@absltest.skipIf(platform.system() == "Darwin", "Fails on macos-14 runner.")
248250
def test_put_blocks_until_item_is_retrieved_from_process(self):
249251
ctx = mp.get_context("spawn")
250252
q = variable_size_queue.VariableSizeMultiprocessingQueue(1, ctx=ctx)

0 commit comments

Comments
 (0)