Skip to content

Commit fbb3c19

Browse files
dpgeorgepfalcon
authored andcommitted
tests: Remove commented out tests so test script is not too big.
1 parent 14848ff commit fbb3c19

File tree

1 file changed

+0
-180
lines changed

1 file changed

+0
-180
lines changed

tests/basics/exceptpoly.py

Lines changed: 0 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,6 @@
2828
except AttributeError:
2929
print("Caught AttributeError")
3030

31-
#try:
32-
# raise BufferError
33-
#except Exception:
34-
# print("Caught BufferError via Exception")
35-
36-
#try:
37-
# raise BufferError
38-
#except BufferError:
39-
# print("Caught BufferError")
40-
41-
#try:
42-
# raise BytesWarning
43-
#except Warning:
44-
# print("Caught BytesWarning via Warning")
45-
46-
#try:
47-
# raise BytesWarning
48-
#except BytesWarning:
49-
# print("Caught BytesWarning")
50-
51-
#try:
52-
# raise DeprecationWarning
53-
#except Warning:
54-
# print("Caught DeprecationWarning via Warning")
55-
56-
#try:
57-
# raise DeprecationWarning
58-
#except DeprecationWarning:
59-
# print("Caught DeprecationWarning")
60-
6131
try:
6232
raise EOFError
6333
except Exception:
@@ -68,16 +38,6 @@
6838
except EOFError:
6939
print("Caught EOFError")
7040

71-
#try:
72-
# raise EnvironmentError
73-
#except Exception:
74-
# print("Caught EnvironmentError via Exception")
75-
76-
#try:
77-
# raise EnvironmentError
78-
#except EnvironmentError:
79-
# print("Caught EnvironmentError")
80-
8141
try:
8242
raise Exception
8343
except BaseException:
@@ -88,36 +48,6 @@
8848
except Exception:
8949
print("Caught Exception")
9050

91-
#try:
92-
# raise FloatingPointError
93-
#except ArithmeticError:
94-
# print("Caught FloatingPointError via ArithmeticError")
95-
96-
#try:
97-
# raise FloatingPointError
98-
#except FloatingPointError:
99-
# print("Caught FloatingPointError")
100-
101-
#try:
102-
# raise FutureWarning
103-
#except Warning:
104-
# print("Caught FutureWarning via Warning")
105-
106-
#try:
107-
# raise FutureWarning
108-
#except FutureWarning:
109-
# print("Caught FutureWarning")
110-
111-
#try:
112-
# raise IOError
113-
#except Exception:
114-
# print("Caught IOError via Exception")
115-
116-
#try:
117-
# raise IOError
118-
#except IOError:
119-
# print("Caught IOError")
120-
12151
try:
12252
raise ImportError
12353
except Exception:
@@ -128,16 +58,6 @@
12858
except ImportError:
12959
print("Caught ImportError")
13060

131-
#try:
132-
# raise ImportWarning
133-
#except Warning:
134-
# print("Caught ImportWarning via Warning")
135-
136-
#try:
137-
# raise ImportWarning
138-
#except ImportWarning:
139-
# print("Caught ImportWarning")
140-
14161
try:
14262
raise IndentationError
14363
except SyntaxError:
@@ -228,36 +148,6 @@
228148
except OverflowError:
229149
print("Caught OverflowError")
230150

231-
#try:
232-
# raise PendingDeprecationWarning
233-
#except Warning:
234-
# print("Caught PendingDeprecationWarning via Warning")
235-
236-
#try:
237-
# raise PendingDeprecationWarning
238-
#except PendingDeprecationWarning:
239-
# print("Caught PendingDeprecationWarning")
240-
241-
#try:
242-
# raise ReferenceError
243-
#except Exception:
244-
# print("Caught ReferenceError via Exception")
245-
246-
#try:
247-
# raise ReferenceError
248-
#except ReferenceError:
249-
# print("Caught ReferenceError")
250-
251-
#try:
252-
# raise ResourceWarning
253-
#except Warning:
254-
# print("Caught ResourceWarning via Warning")
255-
256-
#try:
257-
# raise ResourceWarning
258-
#except ResourceWarning:
259-
# print("Caught ResourceWarning")
260-
261151
try:
262152
raise RuntimeError
263153
except Exception:
@@ -268,16 +158,6 @@
268158
except RuntimeError:
269159
print("Caught RuntimeError")
270160

271-
#try:
272-
# raise RuntimeWarning
273-
#except Warning:
274-
# print("Caught RuntimeWarning via Warning")
275-
276-
#try:
277-
# raise RuntimeWarning
278-
#except RuntimeWarning:
279-
# print("Caught RuntimeWarning")
280-
281161
try:
282162
raise SyntaxError
283163
except Exception:
@@ -288,36 +168,6 @@
288168
except SyntaxError:
289169
print("Caught SyntaxError")
290170

291-
#try:
292-
# raise SyntaxWarning
293-
#except Warning:
294-
# print("Caught SyntaxWarning via Warning")
295-
296-
#try:
297-
# raise SyntaxWarning
298-
#except SyntaxWarning:
299-
# print("Caught SyntaxWarning")
300-
301-
#try:
302-
# raise SystemError
303-
#except Exception:
304-
# print("Caught SystemError via Exception")
305-
306-
#try:
307-
# raise SystemError
308-
#except SystemError:
309-
# print("Caught SystemError")
310-
311-
#try:
312-
# raise TabError
313-
#except IndentationError:
314-
# print("Caught TabError via IndentationError")
315-
316-
#try:
317-
# raise TabError
318-
#except TabError:
319-
# print("Caught TabError")
320-
321171
try:
322172
raise TypeError
323173
except Exception:
@@ -328,26 +178,6 @@
328178
except TypeError:
329179
print("Caught TypeError")
330180

331-
#try:
332-
# raise UnboundLocalError
333-
#except NameError:
334-
# print("Caught UnboundLocalError via NameError")
335-
336-
#try:
337-
# raise UnboundLocalError
338-
#except UnboundLocalError:
339-
# print("Caught UnboundLocalError")
340-
341-
#try:
342-
# raise UserWarning
343-
#except Warning:
344-
# print("Caught UserWarning via Warning")
345-
346-
#try:
347-
# raise UserWarning
348-
#except UserWarning:
349-
# print("Caught UserWarning")
350-
351181
try:
352182
raise ValueError
353183
except Exception:
@@ -358,16 +188,6 @@
358188
except ValueError:
359189
print("Caught ValueError")
360190

361-
#try:
362-
# raise Warning
363-
#except Exception:
364-
# print("Caught Warning via Exception")
365-
366-
#try:
367-
# raise Warning
368-
#except Warning:
369-
# print("Caught Warning")
370-
371191
try:
372192
raise ZeroDivisionError
373193
except ArithmeticError:

0 commit comments

Comments
 (0)