mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #3568 from jdufresne/isatty-bool
Make ContainerIO.isatty() return a bool, not int
This commit is contained in:
commit
2e374cf1ad
|
@ -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