'Due to a bug in Python 2.7 on Windows including multiple \'b\'
characters in the mode passed to the built-in open() will cause an
error.  FilePath.open() ensures that only a single \'b\' character is
included in the mode passed to the built-in open().
See http://bugs.python.org/issue7686 for details about the bug.'

def test_openWithExplicitBinaryMode(self):

    writer = self.path.child('explicit-binary')
    with writer.open('wb') as file:
        file.write('abc\ndef')
    self.assertTrue(writer.exists)
