@@ -491,6 +491,9 @@ def test_create_with_device_cgroup_rules(self):
491
491
assert rule in self .client .logs (ctnr ).decode ('utf-8' )
492
492
493
493
494
+ @pytest .mark .xfail (
495
+ IS_WINDOWS_PLATFORM , reason = 'Test not designed for Windows platform'
496
+ )
494
497
class VolumeBindTest (BaseAPIIntegrationTest ):
495
498
def setUp (self ):
496
499
super (VolumeBindTest , self ).setUp ()
@@ -507,9 +510,6 @@ def setUp(self):
507
510
['touch' , os .path .join (self .mount_dest , self .filename )],
508
511
)
509
512
510
- @pytest .mark .xfail (
511
- IS_WINDOWS_PLATFORM , reason = 'Test not designed for Windows platform'
512
- )
513
513
def test_create_with_binds_rw (self ):
514
514
515
515
container = self .run_with_volume (
@@ -525,9 +525,6 @@ def test_create_with_binds_rw(self):
525
525
inspect_data = self .client .inspect_container (container )
526
526
self .check_container_data (inspect_data , True )
527
527
528
- @pytest .mark .xfail (
529
- IS_WINDOWS_PLATFORM , reason = 'Test not designed for Windows platform'
530
- )
531
528
def test_create_with_binds_ro (self ):
532
529
self .run_with_volume (
533
530
False ,
@@ -548,9 +545,6 @@ def test_create_with_binds_ro(self):
548
545
inspect_data = self .client .inspect_container (container )
549
546
self .check_container_data (inspect_data , False )
550
547
551
- @pytest .mark .xfail (
552
- IS_WINDOWS_PLATFORM , reason = 'Test not designed for Windows platform'
553
- )
554
548
@requires_api_version ('1.30' )
555
549
def test_create_with_mounts (self ):
556
550
mount = docker .types .Mount (
@@ -569,9 +563,6 @@ def test_create_with_mounts(self):
569
563
inspect_data = self .client .inspect_container (container )
570
564
self .check_container_data (inspect_data , True )
571
565
572
- @pytest .mark .xfail (
573
- IS_WINDOWS_PLATFORM , reason = 'Test not designed for Windows platform'
574
- )
575
566
@requires_api_version ('1.30' )
576
567
def test_create_with_mounts_ro (self ):
577
568
mount = docker .types .Mount (
@@ -1116,9 +1107,7 @@ def test_top(self):
1116
1107
1117
1108
self .client .start (container )
1118
1109
res = self .client .top (container )
1119
- if IS_WINDOWS_PLATFORM :
1120
- assert res ['Titles' ] == ['PID' , 'USER' , 'TIME' , 'COMMAND' ]
1121
- else :
1110
+ if not IS_WINDOWS_PLATFORM :
1122
1111
assert res ['Titles' ] == [
1123
1112
'UID' , 'PID' , 'PPID' , 'C' , 'STIME' , 'TTY' , 'TIME' , 'CMD'
1124
1113
]
0 commit comments