# HG changeset patch # User Augie Fackler # Date 2013-01-01 19:21:15 # Node ID 6ae45c0b46259418c76d93cccaecee61a99fd54c # Parent 203b7a759218f181f81ae825838e7a87b227df72 test-symlink-os-yes-fs-no.py: clean up use of two-argument raise This makes any attempt to port to Python 3 harder, and the new syntax is supported in 2.4 already. diff --git a/tests/test-symlink-os-yes-fs-no.py b/tests/test-symlink-os-yes-fs-no.py --- a/tests/test-symlink-os-yes-fs-no.py +++ b/tests/test-symlink-os-yes-fs-no.py @@ -24,7 +24,7 @@ commands.status(u, repo) # now disable symlink support -- this is what os.symlink would do on a # non-symlink file system def symlink_failure(src, dst): - raise OSError, (1, "Operation not permitted") + raise OSError(1, "Operation not permitted") os.symlink = symlink_failure # dereference links as if a Samba server has exported this to a