diff mxtool/mx.py @ 17396:83bbc0e5891a

removed suite_helper.py and inlined common maven URL prefix
author Doug Simon <doug.simon@oracle.com>
date Thu, 09 Oct 2014 16:18:14 +0200
parents b641450c19ce
children c4f649042a7b
line wrap: on
line diff
--- a/mxtool/mx.py	Thu Oct 09 15:58:08 2014 +0200
+++ b/mxtool/mx.py	Thu Oct 09 16:18:14 2014 +0200
@@ -896,8 +896,8 @@
         # For now fail fast if extra modules were loaded.
         # This can later be relaxed to simply remove the extra modules
         # from the sys.modules name space if necessary.
-        extraModules = snapshot - sys.modules.viewkeys()
-        assert len(extraModules) == 0, 'loading ' + modulePath + ' caused extra modules to be loaded: ' + ', '.join([m.__file__ for m in extraModules])
+        extraModules = sys.modules.viewkeys() - snapshot
+        assert len(extraModules) == 0, 'loading ' + modulePath + ' caused extra modules to be loaded: ' + ', '.join([m for m in extraModules])
 
         # revert the Python path
         del sys.path[0]