mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-25 11:33:42 +03:00
Make ContainerIO.isatty() return a bool, not int
Better follows the interface of IOBase.isatty: https://docs.python.org/3/library/io.html#io.IOBase.isatty
This commit is contained in:
parent
7bf5246b93
commit
a08bfa6e9f
|
@ -16,7 +16,7 @@ class TestFileContainer(PillowTestCase):
|
||||||
im = hopper()
|
im = hopper()
|
||||||
container = ContainerIO.ContainerIO(im, 0, 0)
|
container = ContainerIO.ContainerIO(im, 0, 0)
|
||||||
|
|
||||||
self.assertEqual(container.isatty(), 0)
|
self.assertFalse(container.isatty())
|
||||||
|
|
||||||
def test_seek_mode_0(self):
|
def test_seek_mode_0(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
|
|
|
@ -39,7 +39,7 @@ class ContainerIO(object):
|
||||||
# Always false.
|
# Always false.
|
||||||
|
|
||||||
def isatty(self):
|
def isatty(self):
|
||||||
return 0
|
return False
|
||||||
|
|
||||||
def seek(self, offset, mode=0):
|
def seek(self, offset, mode=0):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user