Ronald Oussoren avatar Ronald Oussoren committed cf2b09e

Ensure test cleanup is always run

Comments (0)

Files changed (1)


     def tearDownClass(cls):
+        if os.path.exists('bundle_loader'):
+            os.unlink('bundle_loader')
         if os.path.exists(os.path.join(cls.plugin_dir, 'build')):
             shutil.rmtree(os.path.join(cls.plugin_dir, 'build'))
         if os.path.exists(os.path.join(cls.plugin_dir, 'dist')):
             shutil.rmtree(os.path.join(cls.plugin_dir, 'dist'))
-        if os.path.exists('bundle_loader'):
-            os.unlink('bundle_loader')
     def start_app(self):
         # Start the test app, return a subprocess object where
         # stdin and stdout are connected to pipes.
         if os.path.exists(cls.plugin_dir):
+        super(TestBasicPluginUnicodePath, cls).tearDownClass()
 class TestBasicAliasPluginUnicodePath (TestBasicPluginUnicodePath):
     py2app_args = [ '--alias' ]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.