mailr22153 - /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 February 07, 2014 - 13:47:
Author: bugman
Date: Fri Feb  7 13:47:47 2014
New Revision: 22153

URL: http://svn.gna.org/viewcvs/relax?rev=22153&view=rev
Log:
Fixes for the unit tests of the package __all__ lists for Python 3.

When Python 3 generates byte-compiled *.pyc files, these are stored in 
__pycache__ directories.
These directories are now skipped for the package content unit tests, 
allowing the test to pass.


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=22153&r1=22152&r2=22153&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/package_checking.py (original)
+++ trunk/test_suite/unit_tests/package_checking.py Fri Feb  7 13:47:47 2014
@@ -54,6 +54,10 @@
             if search("^\.", file):
                 continue
 
+            # Skip the Python 3 '__pycache__' directories.
+            if file == '__pycache__':
+                continue
+
             # Only check Python files and directories.
             if not search("\.py$", file) and not isdir(path):
                 continue




Related Messages


Powered by MHonArc, Updated Fri Feb 07 16:00:02 2014