diff options
Diffstat (limited to 'Examples/test-suite/python/li_attribute_runme.py')
-rw-r--r-- | Examples/test-suite/python/li_attribute_runme.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/test-suite/python/li_attribute_runme.py b/Examples/test-suite/python/li_attribute_runme.py index 764bcdb55..a5a6914cd 100644 --- a/Examples/test-suite/python/li_attribute_runme.py +++ b/Examples/test-suite/python/li_attribute_runme.py @@ -75,7 +75,7 @@ if myStringyClass.ReadOnlyString != "changed string": try: x = myFoo.does_not_exist raise RuntimeError -except AttributeError, e: +except AttributeError as e: if str(e).find("does_not_exist") == -1: raise RuntimeError |