ratchets

Mirror of ratchets, my python testing utility
git clone git://git.laack.co/ratchets.git
Log | Files | Refs | README | LICENSE

only_python.toml (290B)


      1 [ratchet.regex.exceptions]
      2 regex = "except:"
      3 invalid = [
      4   """try:
      5     x = 1
      6 except ValueError:
      7     pass""",
      8   """try:
      9     do_something()
     10 except (IOError, ValueError):
     11     handle()"""
     12 ]
     13 valid = [
     14   """
     15 try:
     16     pass
     17 except:
     18     pass""",
     19   """try:
     20     dangerous()
     21 except:
     22     recover()"""
     23 ]