Author: bugman Date: Tue Aug 6 14:21:31 2013 New Revision: 20549 URL: http://svn.gna.org/viewcvs/relax?rev=20549&view=rev Log: Python 3 fix for the new test_suite.clean_up module. The exceptions Python module does not exist in Python 3, so instead the relax compat.builtins object is being used to store the WindowsError variable of None. Modified: trunk/test_suite/clean_up.py Modified: trunk/test_suite/clean_up.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/clean_up.py?rev=20549&r1=20548&r2=20549&view=diff ============================================================================== --- trunk/test_suite/clean_up.py (original) +++ trunk/test_suite/clean_up.py Tue Aug 6 14:21:31 2013 @@ -23,11 +23,11 @@ """Module of functions for cleaning up after the tests.""" # Python module imports. -import exceptions from shutil import rmtree from time import sleep # relax module imports. +from compat import builtins from lib.io import delete @@ -52,8 +52,8 @@ var = getattr(obj, name) # Non-windows systems. - if not hasattr(exceptions, 'WindowsError'): - WindowsError = None + if not hasattr(builtins, 'WindowsError'): + builtins.WindowsError = None # Attempt to remove the file or directory as well as the variable. try: