• Kirill Smelkov's avatar
    golang_str: tests: Fix test_strings_refcount wrt upcoming str=bstr and unicode=ustr · c596ab9c
    Kirill Smelkov authored
    When gpython will start patching builtin str and unicode types with bstr
    and ustr it might be the case that b('abc') return the same 'abc' object
    and so the logic in this test will become broken.
    
    -> Avoid that by keeping the original data in bytearray which for sure
       won't overlap with bytes/str nor unicode irregardless whether those
       builtin types are patched or not.
    c596ab9c
golang_str_test.py 112 KB