• Kirill Smelkov's avatar
    gpython: tests: Don't assume path delimiter is / · d9505256
    Kirill Smelkov authored
    Because on Windows it is \ and using / for it to scan in path fails and
    leads to test_pymain_opt failure:
    
         E             Full diff:
         E               [
         E                'sys.flags.debug:      0',
         E                'sys.flags.optimize:   0',
         E                '__debug__:            True',
         E                'assert:               True',
         E                'docstrings:           True',
         E                'import mod.py:        '
         E             -  'C:\\users\\kirr\\Temp\\modpy_imports_fromvmgs8go4\\__pycache__/mod.cpython-310.pyc',
         E             ?                                            ^^  ----
         E             +  'C:\\users\\kirr\\Temp\\modpy_imports_from850gb81s\\__pycache__/mod.cpython-310.pyc',
         E             ?                                            ^^^ +++
         E               ]
    
    Here the difference is because gpython/testprog/print_opt.py failed to
    detect tmpd prefix and strip it.
    d9505256
print_opt.py 3.11 KB