Skip to content

Commit cffd0fa

Browse files
committed
fix: exclude async-specific code from py37 coverage
The AsgiMiddleware class and set_execution_context_async function in execution_id.py require Python 3.8+ due to async dependencies. These are now excluded from coverage calculations in Python 3.7 environments.
1 parent 054bbc4 commit cffd0fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.coveragerc-py37

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ exclude_lines =
1818
# Don't complain about async-specific imports and code
1919
from functions_framework.aio import
2020
from functions_framework._http.asgi import
21-
from functions_framework._http.gunicorn import UvicornApplication
21+
from functions_framework._http.gunicorn import UvicornApplication
22+
23+
# Exclude async-specific classes and functions in execution_id.py
24+
class AsgiMiddleware:
25+
async def __call__
26+
def set_execution_context_async

0 commit comments

Comments
 (0)