Skip to content

Commit

Permalink
fix test blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Feb 19, 2025
1 parent 30cecc4 commit 4b86cfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions test/test_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def test_privileged_extension(self):
args = p.get_docker_args(mock_cliargs)
self.assertTrue('--privileged' in args)


@pytest.mark.skipif(sys.platform.startswith("win"), reason="User mapping not supported on Windows")
class UserExtensionTest(unittest.TestCase):

def setUp(self):
Expand All @@ -351,7 +351,6 @@ def setUp(self):
# "em.Error: interpreter stdout proxy lost"
em.Interpreter._wasProxyInstalled = False

@pytest.mark.skipif(sys.platform.startswith("win"), "User mapping not supported on Windows")
def test_user_extension(self):
import pwd

Expand Down Expand Up @@ -471,6 +470,7 @@ def test_user_collisions(self):
dig.clear_image()


@pytest.mark.skipif(sys.platform.startswith("win"), reason="Pulse not supported on Windows")
class PulseExtensionTest(unittest.TestCase):

def setUp(self):
Expand Down Expand Up @@ -519,6 +519,7 @@ def test_pulse_extension(self):
&& apt-get clean
"""

@pytest.mark.skipif(sys.platform.startswith("win"), reason="DevHelper not supported on Windows")
class DevHelpersExtensionTest(unittest.TestCase):

def setUp(self):
Expand Down
5 changes: 2 additions & 3 deletions test/test_nvidia.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


@pytest.mark.docker
@pytest.mark.skipif(sys.platform.startswith("win"), "X11 not supported on Windows")
@pytest.mark.skipif(sys.platform.startswith("win"), reason="X11 not supported on Windows")
class X11Test(unittest.TestCase):
@classmethod
def setUpClass(self):
Expand Down Expand Up @@ -95,7 +95,6 @@ def test_x11_extension_nocleanup(self):
# TODO(tfoote) do more to check that it doesn't actually clean up.
# This is more of a smoke test

@pytest.mark.skipif(sys.platform.startswith("win"), "X11 not supported on Windows")
def test_no_x11_xpdyinfo(self):
for tag in self.dockerfile_tags:
dig = DockerImageGenerator([], {}, tag)
Expand All @@ -114,7 +113,7 @@ def test_x11_xpdyinfo(self):


@pytest.mark.docker
@pytest.mark.skipif(sys.platform.startswith("win"), "NVIDIA not supported on Windows")
@pytest.mark.skipif(sys.platform.startswith("win"), reason="NVIDIA not supported on Windows")
class NvidiaTest(unittest.TestCase):
@classmethod
def setUpClass(self):
Expand Down

0 comments on commit 4b86cfe

Please sign in to comment.