File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ def slow (self ):
2+ pass
Original file line number Diff line number Diff line change 2727from fs .test import FSTestCases
2828
2929try :
30- from pytest . mark import slow
30+ from pytest import mark
3131except ImportError :
32-
33- def slow (cls ):
34- return cls
35-
32+ from . import mark
3633
3734# Prevent socket timeouts from slowing tests too much
3835socket .setdefaulttimeout (1 )
@@ -135,7 +132,7 @@ def test_manager_with_host(self):
135132 )
136133
137134
138- @slow
135+ @mark . slow
139136class TestFTPFS (FSTestCases , unittest .TestCase ):
140137
141138 user = "user"
@@ -285,7 +282,7 @@ def test_features(self):
285282 pass
286283
287284
288- @slow
285+ @mark . slow
289286class TestAnonFTPFS (FSTestCases , unittest .TestCase ):
290287
291288 user = "anonymous"
Original file line number Diff line number Diff line change 1818
1919from .test_archives import ArchiveTestCases
2020
21+ try :
22+ from pytest import mark
23+ except ImportError :
24+ from . import mark
25+
2126
2227class TestWriteReadTarFS (unittest .TestCase ):
2328 def setUp (self ):
@@ -93,6 +98,7 @@ def destroy_fs(self, fs):
9398 del fs ._tar_file
9499
95100
101+ @mark .slow
96102@unittest .skipIf (six .PY2 , "Python2 does not support LZMA" )
97103class TestWriteXZippedTarFS (FSTestCases , unittest .TestCase ):
98104 def make_fs (self ):
@@ -118,6 +124,7 @@ def assert_is_xz(self, fs):
118124 tarfile .open (fs ._tar_file , "r:{}" .format (other_comps ))
119125
120126
127+ @mark .slow
121128class TestWriteBZippedTarFS (FSTestCases , unittest .TestCase ):
122129 def make_fs (self ):
123130 fh , _tar_file = tempfile .mkstemp ()
You can’t perform that action at this time.
0 commit comments