commit/galaxy-central: greg: Fix the ToolParamSanitizer unit test. Since mercurial imports locale.getpreferredencoding(), which is part of the Python stdlib, the behavior of python strings is re-sorted, so we have to sort them back...
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/cf7ef2464568/ changeset: cf7ef2464568 branches: user: greg date: 2011-06-01 22:21:12 summary: Fix the ToolParamSanitizer unit test. Since mercurial imports locale.getpreferredencoding(), which is part of the Python stdlib, the behavior of python strings is re-sorted, so we have to sort them back... affected #: 1 file (72 bytes) --- a/lib/galaxy/tools/parameters/sanitize.py Wed Jun 01 15:47:04 2011 -0400 +++ b/lib/galaxy/tools/parameters/sanitize.py Wed Jun 01 16:21:12 2011 -0400 @@ -19,7 +19,7 @@ ... <valid initial="string.letters"/> ... </sanitizer> ... ''' ) ) - >>> sanitizer.sanitize_param( string.printable ) == string.letters + >>> sanitizer.sanitize_param( ''.join( sorted( [ c for c in string.printable ] ) ) ) == ''.join( sorted( [ c for c in string.letters ] ) ) True >>> slash = chr( 92 ) >>> sanitizer = ToolParameterSanitizer.from_element( XML( Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket