@@ -81,6 +81,7 @@ def test_profiler_invalid_mode(mode, make_options, teardown_profiling):
81
81
setup_profiler (make_options (mode ))
82
82
83
83
84
+ @requires_python_version (3 , 3 )
84
85
@pytest .mark .parametrize (
85
86
"mode" ,
86
87
[
@@ -116,6 +117,7 @@ def test_profiler_setup_twice(make_options, teardown_profiling):
116
117
assert not setup_profiler (make_options ())
117
118
118
119
120
+ @requires_python_version (3 , 3 )
119
121
@pytest .mark .parametrize (
120
122
"mode" ,
121
123
[
@@ -173,6 +175,7 @@ def test_profiles_sample_rate(
173
175
assert len (items ["profile" ]) == profile_count
174
176
175
177
178
+ @requires_python_version (3 , 3 )
176
179
@pytest .mark .parametrize (
177
180
"mode" ,
178
181
[
@@ -234,6 +237,7 @@ def test_profiles_sampler(
234
237
assert len (items ["profile" ]) == profile_count
235
238
236
239
240
+ @requires_python_version (3 , 3 )
237
241
def test_minimum_unique_samples_required (
238
242
sentry_init ,
239
243
capture_envelopes ,
@@ -260,6 +264,7 @@ def test_minimum_unique_samples_required(
260
264
assert len (items ["profile" ]) == 0
261
265
262
266
267
+ @requires_python_version (3 , 3 )
263
268
def test_profile_captured (
264
269
sentry_init ,
265
270
capture_envelopes ,
@@ -349,6 +354,7 @@ def static_method():
349
354
return inspect .currentframe ()
350
355
351
356
357
+ @requires_python_version (3 , 3 )
352
358
@pytest .mark .parametrize (
353
359
("frame" , "frame_name" ),
354
360
[
@@ -428,6 +434,7 @@ def test_get_frame_name(frame, frame_name):
428
434
assert get_frame_name (frame ) == frame_name
429
435
430
436
437
+ @requires_python_version (3 , 3 )
431
438
@pytest .mark .parametrize (
432
439
("get_frame" , "function" ),
433
440
[
@@ -455,6 +462,7 @@ def test_extract_frame(get_frame, function):
455
462
assert isinstance (extracted_frame ["lineno" ], int )
456
463
457
464
465
+ @requires_python_version (3 , 3 )
458
466
@pytest .mark .parametrize (
459
467
("depth" , "max_stack_depth" , "actual_depth" ),
460
468
[
@@ -493,6 +501,7 @@ def test_extract_stack_with_max_depth(depth, max_stack_depth, actual_depth):
493
501
assert frames [actual_depth ]["function" ] == "<lambda>" , actual_depth
494
502
495
503
504
+ @requires_python_version (3 , 3 )
496
505
@pytest .mark .parametrize (
497
506
("frame" , "depth" ),
498
507
[(get_frame (depth = 1 ), len (inspect .stack ()))],
@@ -514,6 +523,7 @@ def test_extract_stack_with_cache(frame, depth):
514
523
assert frame1 is frame2 , i
515
524
516
525
526
+ @requires_python_version (3 , 3 )
517
527
def test_get_current_thread_id_explicit_thread ():
518
528
results = Queue (maxsize = 1 )
519
529
@@ -535,6 +545,7 @@ def target2():
535
545
assert thread1 .ident == results .get (timeout = 1 )
536
546
537
547
548
+ @requires_python_version (3 , 3 )
538
549
@requires_gevent
539
550
def test_get_current_thread_id_gevent_in_thread ():
540
551
results = Queue (maxsize = 1 )
@@ -550,6 +561,7 @@ def target():
550
561
assert thread .ident == results .get (timeout = 1 )
551
562
552
563
564
+ @requires_python_version (3 , 3 )
553
565
def test_get_current_thread_id_running_thread ():
554
566
results = Queue (maxsize = 1 )
555
567
@@ -562,6 +574,7 @@ def target():
562
574
assert thread .ident == results .get (timeout = 1 )
563
575
564
576
577
+ @requires_python_version (3 , 3 )
565
578
def test_get_current_thread_id_main_thread ():
566
579
results = Queue (maxsize = 1 )
567
580
@@ -626,6 +639,7 @@ def test_thread_scheduler_single_background_thread(scheduler_class):
626
639
assert len (get_scheduler_threads (scheduler )) == 0
627
640
628
641
642
+ @requires_python_version (3 , 3 )
629
643
@pytest .mark .parametrize (
630
644
("scheduler_class" ,),
631
645
[
@@ -684,6 +698,7 @@ def ensure_running(self):
684
698
]
685
699
686
700
701
+ @requires_python_version (3 , 3 )
687
702
@pytest .mark .parametrize (
688
703
("samples" , "expected" ),
689
704
[
0 commit comments