def str2hex(s):
    r = ''
    for c in s:
        r += hex(ord(c))[2:]
    return r
Regression test for https://github.com/astropy/astropy/pull/4514
dataset/ETHPy150Open lsaffre/lino/lino/utils/__init__.py/str2hex--crossover with--dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_table.py/TestColumnFunctions.test_x_column_deepcopy