File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Repository = "https://github.com/Azure/azure-functions-python-worker"
45
45
dev = [
46
46
" azure-eventhub" , # Used for EventHub E2E tests
47
47
" azure-functions-durable" , # Used for Durable E2E tests
48
- " azure-monitor-opentelemetry" , # Used for Azure Monitor unit tests
48
+ " azure-monitor-opentelemetry; python_version >= '3.8' " , # Used for Azure Monitor unit tests
49
49
" flask" ,
50
50
" fastapi~=0.103.2" ,
51
51
" pydantic" ,
@@ -56,7 +56,7 @@ dev = [
56
56
" requests==2.*" ,
57
57
" coverage" ,
58
58
" pytest-sugar" ,
59
- " opentelemetry-api" , # Used for OpenTelemetry unit tests
59
+ " opentelemetry-api; python_version >= '3.8' " , # Used for OpenTelemetry unit tests
60
60
" pytest-cov" ,
61
61
" pytest-xdist" ,
62
62
" pytest-randomly" ,
@@ -83,7 +83,7 @@ test-deferred-bindings = [
83
83
]
84
84
85
85
[build-system ]
86
- requires = [" setuptools>=42 " , " wheel" ]
86
+ requires = [" setuptools>=62 " , " wheel" ]
87
87
build-backend = " setuptools.build_meta"
88
88
89
89
Original file line number Diff line number Diff line change 1
1
import asyncio
2
2
import os
3
+ import sys
3
4
import unittest
5
+
6
+ from unittest import skipIf
4
7
from unittest .mock import MagicMock , patch
5
8
6
9
from tests .unittests .test_dispatcher import FUNCTION_APP_DIRECTORY
9
12
from azure_functions_worker import protos
10
13
11
14
15
+ @skipIf (sys .version_info .minor == 7 ,
16
+ "Packages are only supported for 3.8+" )
12
17
class TestOpenTelemetry (unittest .TestCase ):
13
18
14
19
def setUp (self ):
You can’t perform that action at this time.
0 commit comments