##// END OF EJS Templates
Don’t use ZeroDivisionError in tests...
MinRK -
Show More
@@ -11,19 +11,19 b''
11 11 "cell_type": "code",
12 12 "collapsed": false,
13 13 "input": [
14 "1 / 0"
14 "raise Exception(\"message\")"
15 15 ],
16 16 "language": "python",
17 17 "metadata": {},
18 18 "outputs": [
19 19 {
20 "ename": "ZeroDivisionError",
21 "evalue": "integer division or modulo by zero",
20 "ename": "Exception",
21 "evalue": "message",
22 22 "output_type": "pyerr",
23 23 "traceback": [
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
25 "\u001b[1;32m<ipython-input-1-b710d87c980c>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;36m1\u001b[0m \u001b[1;33m/\u001b[0m \u001b[1;36m0\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
26 "\u001b[1;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mException\u001b[0m Traceback (most recent call last)",
25 "\u001b[1;32m<ipython-input-1-335814d14fc1>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0mException\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"message\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
26 "\u001b[1;31mException\u001b[0m: message"
27 27 ]
28 28 }
29 29 ],
@@ -11,19 +11,19 b''
11 11 "cell_type": "code",
12 12 "collapsed": false,
13 13 "input": [
14 "1 / 0"
14 "raise Exception(\"message\")"
15 15 ],
16 16 "language": "python",
17 17 "metadata": {},
18 18 "outputs": [
19 19 {
20 "ename": "ZeroDivisionError",
21 "evalue": "integer division or modulo by zero",
20 "ename": "Exception",
21 "evalue": "message",
22 22 "output_type": "pyerr",
23 23 "traceback": [
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
25 "\u001b[1;32m<ipython-input-1-b710d87c980c>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;36m1\u001b[0m \u001b[1;33m/\u001b[0m \u001b[1;36m0\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
26 "\u001b[1;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mException\u001b[0m Traceback (most recent call last)",
25 "\u001b[1;32m<ipython-input-1-335814d14fc1>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0mException\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"message\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
26 "\u001b[1;31mException\u001b[0m: message"
27 27 ]
28 28 }
29 29 ],
General Comments 0
You need to be logged in to leave comments. Login now