• Kirill Smelkov's avatar
    golang_str: tests: Fix test_strings_methods wrt upcoming str=bstr and unicode=ustr · e6570490
    Kirill Smelkov authored
    When gpython will start patching builtin str and unicode types with bstr
    and ustr the first argument to assertDeepEQ will have builtin str or
    unicode type and the existing
    
        assert not isinstance(a, (bstr, ustr))
    
    will break.
    
    -> Rewrite that assert to do equivalent check carefully that does not
    break when str/unicode types are patched with bstr and ustr.
    e6570490
golang_str_test.py 112 KB