tests: Rename test scripts, changing - to _ for consistency.

From now on, all new tests must use underscore.

Addresses issue #727.
This commit is contained in:
Damien George
2014-07-05 06:14:29 +01:00
parent 0182385ab0
commit 539681fffd
98 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# Reraise not the latest occured exception
def f():
try:
raise ValueError("val", 3)
except:
try:
print(1)
raise TypeError
except:
print(2)
try:
print(3)
try:
print(4)
raise AttributeError
except:
print(5)
pass
print(6)
raise
except TypeError:
print(7)
pass
print(8)
print(9)
# This should raise original ValueError, not the most recently occurred AttributeError
raise
try:
f()
except ValueError as e:
print(repr(e))