Remove Windows workarounds from tests/utils/test_json.py (#64311)

This commit is contained in:
Erik Montnemery 2022-01-17 19:34:46 +01:00 committed by GitHub
parent 08132eb922
commit 7c110eeef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,7 @@ from functools import partial
from json import JSONEncoder, dumps from json import JSONEncoder, dumps
import math import math
import os import os
import sys
from tempfile import mkdtemp from tempfile import mkdtemp
import unittest
from unittest.mock import Mock from unittest.mock import Mock
import pytest import pytest
@ -53,10 +51,6 @@ def test_save_and_load():
assert data == TEST_JSON_A assert data == TEST_JSON_A
# Skipped on Windows
@unittest.skipIf(
sys.platform.startswith("win"), "private permissions not supported on Windows"
)
def test_save_and_load_private(): def test_save_and_load_private():
"""Test we can load private files and that they are protected.""" """Test we can load private files and that they are protected."""
fname = _path_for("test2") fname = _path_for("test2")