Skip to content

Commit a1fe0d3

Browse files
committed
Skip some tests on MacOS.
1 parent a1705e0 commit a1fe0d3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

typed_python/compiler/tests/serialization_compilation_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
serialize as serializeNative,
2323
deserialize as deserializeNative
2424
)
25-
25+
import pytest
2626
import threading
2727
import time
2828

@@ -96,6 +96,7 @@ def timeInNThreads(f, args, threadCount):
9696
return time.time() - t0
9797

9898

99+
@pytest.mark.skipif('sys.platform=="darwin"')
99100
def test_serialization_perf():
100101
s = SerializationContext().withoutCompression()
101102

typed_python/compiler/tests/type_inference_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def f(x: OneOf(None, str)):
411411

412412
assert f("hi")['x'] == str
413413

414+
@pytest.mark.skipif('sys.platform=="darwin"')
414415
def test_assertion_prunes_types(self):
415416
@Entrypoint
416417
def f(x: OneOf(None, str)):
@@ -421,6 +422,7 @@ def f(x: OneOf(None, str)):
421422
assert f.resultTypeFor(str).typeRepresentation is str
422423
assert f.resultTypeFor(type(None)).typeRepresentation is str
423424

425+
@pytest.mark.skipif('sys.platform=="darwin"')
424426
def test_branch_with_raise_prunes_types(self):
425427
@Entrypoint
426428
def f(x: OneOf(None, str)):

0 commit comments

Comments
 (0)