duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] unused assert


From: Jason Dusek
Subject: Re: [Duplicity-talk] unused assert
Date: Thu, 21 Aug 2008 04:29:42 -0700

Kenneth Loafman <address@hidden> wrote:
> At some point get_sorted_chains() must have screwed up.
> Perhaps it would be wise to assume it might happen again.

  Let me try again. The original code is as follows:

    self.all_backup_chains = backup_chains

    assert len(backup_chains) == len(self.all_backup_chains)

  Clearly, this is true no matter what `get_sorted_chains` did.
  So the assert is not really testing anything.

--
_jsn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]