Skip to content

Commit 85fcaa5

Browse files
committed
Remove test
1 parent a701f7f commit 85fcaa5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

stdlib/@tests/test_cases/check_logging.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from __future__ import annotations
22

3-
import io
43
import logging
54
import logging.handlers
65
import multiprocessing
76
import queue
8-
from typing import Any, Union
9-
from typing_extensions import assert_type
7+
from typing import Any
108

119
# This pattern comes from the logging docs, and should therefore pass a type checker
1210
# See https://docs.python.org/3/library/logging.html#logrecord-objects
@@ -30,7 +28,3 @@ def record_factory(*args: Any, **kwargs: Any) -> logging.LogRecord:
3028
logging.handlers.QueueListener(queue.Queue())
3129
logging.handlers.QueueListener(queue.SimpleQueue())
3230
logging.handlers.QueueListener(multiprocessing.Queue())
33-
34-
# FileHandler.stream can be None when delay=True or after close()
35-
fh = logging.FileHandler("test.log", delay=True)
36-
assert_type(fh.stream, Union[io.TextIOWrapper, None])

0 commit comments

Comments
 (0)