mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +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()
|
||||
container = ContainerIO.ContainerIO(im, 0, 0)
|
||||
|
||||
self.assertEqual(container.isatty(), 0)
|
||||
self.assertFalse(container.isatty())
|
||||
|
||||
def test_seek_mode_0(self):
|
||||
# Arrange
|
||||
|
|
|
@ -39,7 +39,7 @@ class ContainerIO(object):
|
|||
# Always false.
|
||||
|
||||
def isatty(self):
|
||||
return 0
|
||||
return False
|
||||
|
||||
def seek(self, offset, mode=0):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user