def testModePreservation(self):
        f = open(self.path, "w").close()
        os.chmod(self.path, 0707)
        mode = os.stat(self.path)[stat.ST_MODE]
        log = logfile.LogFile(self.name, self.dir)
        log.write("abc")
        log.rotate()
        self.assertEqual(mode, os.stat(self.path)[stat.ST_MODE])
Train a classifier on each specified time slice.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_logfile.py/LogFileTestCase.testModePreservation--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/decoding/time_gen.py/_GeneralizationAcrossTime.fit