We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca703c0 commit 886a2d3Copy full SHA for 886a2d3
tests/main.py
@@ -1,10 +1,17 @@
1
import unittest
2
-import _pyawaitable_test
3
import asyncio
4
from typing import Any, Callable
5
from collections.abc import Awaitable, Coroutine
6
import inspect
7
+NOT_FOUND = """
8
+The PyAwaitable test package wasn't built!
9
+Please install it with `pip install ./tests`
10
+"""
11
+try:
12
+ import _pyawaitable_test
13
+except ImportError as err:
14
+ raise RuntimeError(NOT_FOUND) from err
15
16
class PyAwaitableTests(unittest.TestCase):
17
def test_awaitable_semantics(self):
0 commit comments