File tree Expand file tree Collapse file tree 3 files changed +1
-30
lines changed Expand file tree Collapse file tree 3 files changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ def test(ctx, all=False):
2323 '--timeout=30' # Each test should timeout after 30 sec
2424 ]
2525
26- # Default to not running the slow tests.
27- if not all :
28- test_cmd .append ('-m "not slow_test"' )
29-
3026 # Test in this directory
3127 test_cmd .append ("tests" )
3228
Original file line number Diff line number Diff line change @@ -32,29 +32,6 @@ def _samefile(x, y):
3232 sys .path .insert (0 , path )
3333
3434
35- # Check if pytest is imported. If so, we use it to create marking decorators.
36- # If not, we just create a function that does nothing.
37- try :
38- import pytest
39- except ImportError :
40- pytest = None
41-
42- if pytest is not None :
43- slow_test = pytest .mark .slow_test
44- xfail = pytest .mark .xfail
45-
46- else :
47-
48- def slow_test (x ):
49- return x
50-
51- def xfail (* args , ** kwargs ):
52- if len (args ) > 0 and isinstance (args [0 ], types .FunctionType ):
53- return args [0 ]
54-
55- return lambda x : x
56-
57-
5835# We don't use the pytest parametrizing function, since it seems to break
5936# with unittest.TestCase subclasses.
6037def parametrize (field_names , field_values ):
Original file line number Diff line number Diff line change 2727 parse_options_header ,
2828)
2929
30- from .compat import parametrize , parametrize_class , slow_test
30+ from .compat import parametrize , parametrize_class
3131
3232if TYPE_CHECKING :
3333 from multipart .multipart import FileConfig
@@ -905,7 +905,6 @@ def test_feed_blocks(self):
905905 # Assert that our field is here.
906906 self .assert_field (b"field" , b"0123456789ABCDEFGHIJ0123456789ABCDEFGHIJ" )
907907
908- @slow_test
909908 def test_request_body_fuzz (self ):
910909 """
911910 This test randomly fuzzes the request body to ensure that no strange
@@ -978,7 +977,6 @@ def test_request_body_fuzz(self):
978977 print ("Failures: %d" % (failures ,))
979978 print ("Exceptions: %d" % (exceptions ,))
980979
981- @slow_test
982980 def test_request_body_fuzz_random_data (self ):
983981 """
984982 This test will fuzz the multipart parser with some number of iterations
You can’t perform that action at this time.
0 commit comments