Call the base class destructor if it exists.
authorZac Medico <zmedico@gentoo.org>
Sat, 17 Mar 2007 09:20:33 +0000 (09:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 17 Mar 2007 09:20:33 +0000 (09:20 -0000)
svn path=/main/trunk/; revision=6234

pym/portage/tests/bin/setup_env.py

index f6ff59ff1d9586b0686518f1a9810ed5111f6806..e0a89f1e29ea3f5b7f1e579c75eeef84306b3c5e 100644 (file)
@@ -33,6 +33,8 @@ class BinTestCase(TestCase):
                binTestsInit()
        def __del__(self):
                binTestsCleanup()
+               if hasattr(TestCase, "__del__"):
+                       TestCase.__del__(self)
 
 def _exists_in_D(path):
        # Note: do not use os.path.join() here, we assume D to end in /