File: shared.py

package info (click to toggle)
anki 1.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,932 kB
  • sloc: python: 34,972; sh: 214; xml: 106; makefile: 31
file content (7 lines) | stat: -rw-r--r-- 140 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
def assertException(exception, func):
    found = False
    try:
        func()
    except exception:
        found = True
    assert found