• Shai Berger's avatar
    Cleanup: Removed the try-except-fail antipattern from tests · 071801cc
    Shai Berger yazdı
    Found cases where testing code was doing
    
        try:
            whatever
        except (some excption type):
            self.fail("exception shouldn't be thrown")
    
    replaced it with just
    
        whatever
    
    as this makes the unexpected errors easier to debug, and the tests
    would fail just as much and aren't rendered less readable.
    
    Thanks Markus Holtermann for review
    071801cc
tests.py 14.2 KB