@without_source_date_epoch
def test_no_args_respects_force_flag(self):
    self._skip_if_sys_path_not_writable()
    bazfn = script_helper.make_script(self.directory, 'baz', '')
    self.assertRunOK(PYTHONPATH=self.directory)
    pycpath = importlib.util.cache_from_source(bazfn)
    os.utime(pycpath, (((time.time() - 60),) * 2))
    mtime = os.stat(pycpath).st_mtime
    self.assertRunOK(PYTHONPATH=self.directory)
    mtime2 = os.stat(pycpath).st_mtime
    self.assertEqual(mtime, mtime2)
    self.assertRunOK('-f', PYTHONPATH=self.directory)
    mtime2 = os.stat(pycpath).st_mtime
    self.assertNotEqual(mtime, mtime2)
@without_source_date_epoch
def test_no_args_respects_force_flag(self):
    self._skip_if_sys_path_not_writable()
    bazfn = script_helper.make_script(self.directory, 'baz', )
    self.assertRunOK(PYTHONPATH=self.directory)
    pycpath = importlib.util.cache_from_source(bazfn)
    os.utime(pycpath, (((time.time() - 60),) * 2))
    mtime = os.stat(pycpath).st_mtime
    self.assertRunOK(PYTHONPATH=self.directory)
    mtime2 = os.stat(pycpath).st_mtime
    self.assertEqual(mtime, mtime2)
    self.assertRunOK('-f', PYTHONPATH=self.directory)
    mtime2 = os.stat(pycpath).st_mtime
    self.assertNotEqual(mtime, mtime2)