'Opening a L{LogFile} which can be read and write but whose mode can\'t
be changed doesn\'t trigger an error.'

def test_cantChangeFileMode(self):

    if runtime.platform.isWindows():
        (name, directory) = ('NUL', '')
        expectedPath = 'NUL'
    else:
        (name, directory) = ('null', '/dev')
        expectedPath = '/dev/null'
    log = logfile.LogFile(name, directory, defaultMode=365)
    self.addCleanup(log.close)
    self.assertEqual(log.path, expectedPath)
    self.assertEqual(log.defaultMode, 365)
