From fdc1e44a359841e076be21f3779cc2daf36ab1cf Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 1 Nov 2021 22:59:35 +0200 Subject: [PATCH] Add tests --- tests/test___all__.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/test___all__.py diff --git a/tests/test___all__.py b/tests/test___all__.py new file mode 100644 index 00000000000..390f1407147 --- /dev/null +++ b/tests/test___all__.py @@ -0,0 +1,24 @@ +from typing import Any + + +def test___all__(pytester: Any) -> None: + """ + See https://github.com/aio-libs/aiohttp/issues/6197 + """ + pytester.makepyfile( + test_a=""" + from aiohttp import * + """ + ) + result = pytester.runpytest("-vv") + result.assert_outcomes(passed=0, errors=0) + + +def test_web___all__(pytester: Any) -> None: + pytester.makepyfile( + test_b=""" + from aiohttp.web import * + """ + ) + result = pytester.runpytest("-vv") + result.assert_outcomes(passed=0, errors=0)