Skip to content

Commit

Permalink
Skip windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Feb 22, 2024
1 parent 02576b2 commit f96475c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_juce_core/test_MemoryMappedFile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import sys
import pytest

import popsicle as juce
from popsicle import int64
Expand Down Expand Up @@ -28,6 +30,7 @@ def test_memory_mapped_file_read_write_mode():

#==================================================================================================

@pytest.mark.skipif(sys.platform == "win32")
def test_memory_mapped_file_exclusive_mode():
mmf = juce.MemoryMappedFile(data_folder.getChildFile("somefile.txt"), juce.MemoryMappedFile.readOnly, exclusive=True)
assert mmf.getData() is not None
Expand Down Expand Up @@ -58,6 +61,7 @@ def test_memory_mapped_file_section_read_write_mode():

#==================================================================================================

@pytest.mark.skipif(sys.platform == "win32")
def test_memory_mapped_file_section_exclusive_mode():
mmf = juce.MemoryMappedFile(data_folder.getChildFile("somefile.txt"), juce.Range[int64](0, 10), juce.MemoryMappedFile.readOnly, exclusive=True)
assert mmf.getData() is not None
Expand Down

0 comments on commit f96475c

Please sign in to comment.