GNOME Bugzilla – Bug 342028
Error in the tests contained in config.py
Last modified: 2006-06-02 18:54:51 UTC
Please describe the problem: Error in the tests contained in config.py This code always returns a failure: 1 failure = True 2 failure = config.ensureSensitivity != True 3 config.ensureSensitivity = False 4 failure = failure or config.ensureSensitivity == True 5 config.ensureSensitivity = True 6 failure = failure or config.ensureSensitivity != True 7 failOrPass(failure, "Setting ensureSensitivity") I think you wanted line 6 to use 'and', not 'or' Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Changing the 'or' to and 'and' on line 6 would bring the possibility of false passes. The real problem stems from a change I made on 2005-11-01: * dogtail/config.py: Make config.ensureSensitivity False by default. See, I forgot to update the unit test, which on line 3 does: failure = config.ensureSensitivity != True when it should be: failure = config.ensureSensitivity != config.defaults['ensureSensitivity'] I fixed the problem. Thanks for reporting!