File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
import em
20
20
import os
21
21
import pytest
22
+ import sys
22
23
import unittest
23
24
24
25
from itertools import chain
@@ -233,7 +234,7 @@ def test_docker_cmd_interactive(self):
233
234
234
235
self .assertNotIn ('-it' , dig .generate_docker_cmd (mode = 'non-interactive' ))
235
236
236
- @pytest .mark .linux
237
+ @pytest .mark .skipif ( sys . platform . startswith ( "win" ), "User detection not supported on Windows" )
237
238
def test_docker_user_detection (self ):
238
239
import pwd
239
240
userinfo = pwd .getpwuid (os .getuid ())
Original file line number Diff line number Diff line change 23
23
from pathlib import Path
24
24
import pytest
25
25
from io import BytesIO as StringIO
26
+ import sys
26
27
27
28
28
29
from rocker .core import DockerImageGenerator
@@ -350,7 +351,7 @@ def setUp(self):
350
351
# "em.Error: interpreter stdout proxy lost"
351
352
em .Interpreter ._wasProxyInstalled = False
352
353
353
- @pytest .mark .linux
354
+ @pytest .mark .skipif ( sys . platform . startswith ( "win" ), "User mapping not supported on Windows" )
354
355
def test_user_extension (self ):
355
356
import pwd
356
357
You can’t perform that action at this time.
0 commit comments