Skip to content

Commit ac4f317

Browse files
author
Shane Hathaway
committed
Fixed a test. Python 2.x doesn't have assertIn.
1 parent dde1209 commit ac4f317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/tests/test_loggers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_ctor_with_dev_stdout(self):
231231
handler = self._makeOne('/dev/stdout')
232232
# Modes 'w' and 'a' have the same semantics when applied to
233233
# character device files and fifos.
234-
self.assertIn(handler.mode, ['w', 'a'])
234+
self.assertTrue(handler.mode in ['w', 'a'], handler.mode)
235235
self.assertEqual(handler.baseFilename, '/dev/stdout')
236236
self.assertEqual(handler.stream.name, '/dev/stdout')
237237
handler.close()

0 commit comments

Comments
 (0)