...... ---------------------------------------------------------------------- Ran 6 tests in 0.001s OK [] [(Glob_Star, '*'), (Glob_OtherLiteral, '.'), (Glob_CleanLiterals, 'py')] [(Glob_EscapedChar, '\\*'), (Glob_OtherLiteral, '.'), (Glob_CleanLiterals, 'py')] [(Glob_LBracket, '['), (Glob_CleanLiterals, 'abc'), (Glob_RBracket, ']')] [(Glob_BadBackslash, '\\')] [(Glob_EscapedChar, '\\x')] [(Glob_EscapedChar, '\\\\')] [(Glob_LBracket, '['), (Glob_LBracket, '['), (Glob_OtherLiteral, ':'), (Glob_CleanLiterals, 'alpha'), (Glob_OtherLiteral, ':'), (Glob_RBracket, ']'), (Glob_RBracket, ']')] [(Glob_LBracket, '['), (Glob_QMark, '?'), (Glob_RBracket, ']')] === *.py regex : .*\.py warnings: [] === *.? regex : .*\.. warnings: [] === <*> regex : <.*> warnings: [] === \**+ regex : \*.*\+ warnings: [] === \** regex : \*.* warnings: [] === *.[ch]pp regex : .*\.[ch]pp warnings: [] === abc regex : None warnings: [] === \* regex : None warnings: [] === c:\foo regex : None warnings: [] === strange]one regex : None warnings: ['Got unescaped right bracket'] === [[:space:]abc] regex : [[:space:]abc] warnings: [] === [abc] regex : [abc] warnings: [] === [\a\b\c] regex : [\a\b\c] warnings: [] === [abc\[] regex : [abc\[] warnings: [] === [!not] regex : [^not] warnings: [] === [^also_not] regex : [^also_not] warnings: [] === [!*?!\[] regex : [^*?!\[] warnings: [] === [!\]foo] regex : [^\]foo] warnings: [] === not_closed[a-z regex : None warnings: ['Malformed character class; treating as literal'] === [[:spa[ce:]] regex : None warnings: ['Malformed character class; treating as literal'] === [ regex : None warnings: ['Malformed character class; treating as literal'] === \ regex : None warnings: ['Got unescaped trailing backslash'] === ] regex : None warnings: ['Got unescaped right bracket']