mailr18672 - /trunk/test_suite/unit_tests/package_checking.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on March 07, 2013 - 17:16:
Author: bugman
Date: Thu Mar  7 17:16:45 2013
New Revision: 18672

URL: http://svn.gna.org/viewcvs/relax?rev=18672&view=rev
Log:
Improved the package __all__ list base unit test by skipping all hidden files 
and directories.


Modified:
    trunk/test_suite/unit_tests/package_checking.py

Modified: trunk/test_suite/unit_tests/package_checking.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/package_checking.py?rev=18672&r1=18671&r2=18672&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/package_checking.py (original)
+++ trunk/test_suite/unit_tests/package_checking.py Thu Mar  7 17:16:45 2013
@@ -39,10 +39,14 @@
         # Check for modules/packages missing from the __all__ list.
         print("\nChecking for modules/packages missing from the __all__ 
list.")
         files = listdir(self.package_path)
-        skip = ['__init__.py', '.svn']
+        skip = ['__init__.py']
         for file in files:
             # Files and directories to skip.
             if file in skip:
+                continue
+
+            # Skip hidden files and directories.
+            if search("^\.", file):
                 continue
 
             # Skip blacklisted files.




Related Messages


Powered by MHonArc, Updated Thu Mar 07 18:00:02 2013