File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
typed_python/compiler/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ def f(x: OneOf(None, str)):
411411
412412 assert f ("hi" )['x' ] == str
413413
414- @pytest .mark .skipif (' sys.platform=="darwin"' )
414+ @pytest .mark .skipif (" sys.version_info.minor < 8" )
415415 def test_assertion_prunes_types (self ):
416416 @Entrypoint
417417 def f (x : OneOf (None , str )):
@@ -422,7 +422,7 @@ def f(x: OneOf(None, str)):
422422 assert f .resultTypeFor (str ).typeRepresentation is str
423423 assert f .resultTypeFor (type (None )).typeRepresentation is str
424424
425- @pytest .mark .skipif (' sys.platform=="darwin"' )
425+ @pytest .mark .skipif (" sys.version_info.minor < 8" )
426426 def test_branch_with_raise_prunes_types (self ):
427427 @Entrypoint
428428 def f (x : OneOf (None , str )):
You can’t perform that action at this time.
0 commit comments