mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
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...
This commit is contained in:
@@ -19,7 +19,7 @@ class ToolParameterSanitizer( object ):
|
||||
... <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(
|
||||
|
||||
Reference in New Issue
Block a user