mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
14 lines
302 B
Python
14 lines
302 B
Python
import sys
|
|
|
|
from gunicorn.glogging import LazyWriter
|
|
|
|
|
|
def test_lazywriter_isatty():
|
|
orig = sys.stdout
|
|
sys.stdout = LazyWriter('test.log')
|
|
try:
|
|
sys.stdout.isatty()
|
|
except AttributeError:
|
|
raise AssertionError("LazyWriter has no attribute 'isatty'")
|
|
sys.stdout = orig
|