Commit aaa0da9a by Sébastien Eustace

Fix tests

parent 10db97d8
from __future__ import unicode_literals from __future__ import unicode_literals
import sys
import pytest import pytest
import toml import toml
...@@ -81,6 +83,18 @@ class Locker(BaseLocker): ...@@ -81,6 +83,18 @@ class Locker(BaseLocker):
self._written_data = data self._written_data = data
@pytest.fixture(autouse=True)
def setup():
# Mock python version and platform to get reliable tests
original_platform = sys.platform
sys.platform = 'darwin'
yield
sys.platform = original_platform
@pytest.fixture() @pytest.fixture()
def package(): def package():
return get_package('root', '1.0') return get_package('root', '1.0')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment