~yerinalexey/pcrond

329ecff1109b6c961cc099f01d0646f3a4c73299 — Luca Vercelli 2 years ago 1b59c27
run test
1 files changed, 2 insertions(+), 1 deletions(-)

M test_scheduler.py
M test_scheduler.py => test_scheduler.py +2 -1
@@ 255,7 255,8 @@ class SchedulerTests(unittest.TestCase):
        assert os.path.isfile(os.path.join("tests", "somefile"))
        # FIXME system may be utc or not...
        # assert d.utcfromtimestamp(os.path.getmtime(os.path.join("tests", "somefile"))) >= start_time
        assert d.fromtimestamp(os.path.getmtime(os.path.join("tests", "somefile"))) >= start_time
        assert d.fromtimestamp(os.path.getmtime(os.path.join("tests", "somefile"))) >= start_time - timedelta(seconds=1)
        # FIXME on Travis CI, I had to add 1 second delay and I don't understand why

    @unittest.skipUnless(sys.platform.startswith("win"), "requires Windows")
    def test_load_crontab_and_main_loop_win(self):