##// END OF EJS Templates
Don’t use ZeroDivisionError in tests...
MinRK -
Show More
@@ -11,19 +11,19 b''
11 "cell_type": "code",
11 "cell_type": "code",
12 "collapsed": false,
12 "collapsed": false,
13 "input": [
13 "input": [
14 "1 / 0"
14 "raise Exception(\"message\")"
15 ],
15 ],
16 "language": "python",
16 "language": "python",
17 "metadata": {},
17 "metadata": {},
18 "outputs": [
18 "outputs": [
19 {
19 {
20 "ename": "ZeroDivisionError",
20 "ename": "Exception",
21 "evalue": "integer division or modulo by zero",
21 "evalue": "message",
22 "output_type": "pyerr",
22 "output_type": "pyerr",
23 "traceback": [
23 "traceback": [
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mException\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",
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;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
26 "\u001b[1;31mException\u001b[0m: message"
27 ]
27 ]
28 }
28 }
29 ],
29 ],
@@ -11,19 +11,19 b''
11 "cell_type": "code",
11 "cell_type": "code",
12 "collapsed": false,
12 "collapsed": false,
13 "input": [
13 "input": [
14 "1 / 0"
14 "raise Exception(\"message\")"
15 ],
15 ],
16 "language": "python",
16 "language": "python",
17 "metadata": {},
17 "metadata": {},
18 "outputs": [
18 "outputs": [
19 {
19 {
20 "ename": "ZeroDivisionError",
20 "ename": "Exception",
21 "evalue": "integer division or modulo by zero",
21 "evalue": "message",
22 "output_type": "pyerr",
22 "output_type": "pyerr",
23 "traceback": [
23 "traceback": [
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
24 "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mException\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",
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;31mZeroDivisionError\u001b[0m: integer division or modulo by zero"
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