| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import osscip-python python python-stdlib 3.11 os/__init__: |
| 4 | import sysscip-python python python-stdlib 3.11 sys/__init__: |
| 5 | |
| 6 | def permit_osx_workaroundscip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m1), m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m2)): |
| 7 | import platformscip-python python python-stdlib 3.11 platform/__init__: |
| 8 | if platformscip-python python python-stdlib 3.11 platform/__init__:.systemscip-python python python-stdlib 3.11 platform/system().().lowerscip-python python python-stdlib 3.11 builtins/str#lower().() != 'darwin': |
| 9 | return False |
| 10 | if m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m2) % 10000 != 0: |
| 11 | return False |
| 12 | if m1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m1)//10000 != m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m2)//10000: |
| 13 | return False |
| 14 | return True |
| 15 | |
| 16 | if len(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.) == 2: |
| 17 | assert osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..existsscip-python python python-stdlib 3.11 posixpath/split().(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[1]) |
| 18 | elif len(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.) == 3: |
| 19 | f1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f1. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[1] |
| 20 | f2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f2. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[2] |
| 21 | m1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m1. = osscip-python python python-stdlib 3.11 os/__init__:.statscip-python python python-stdlib 3.11 os/stat().(f1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f1.).st_mtime_nsscip-python python python-stdlib 3.11 os/stat_result#st_mtime_ns(). |
| 22 | m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m2. = osscip-python python python-stdlib 3.11 os/__init__:.statscip-python python python-stdlib 3.11 os/stat().(f2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f2.).st_mtime_nsscip-python python python-stdlib 3.11 os/stat_result#st_mtime_ns(). |
| 23 | # Compare only os.stat() |
| 24 | if m1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m1. != m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m2.: |
| 25 | # Under macOS the lower four digits sometimes get assigned |
| 26 | # zero, even though shutil.copy2 should preserve metadata. |
| 27 | # Just have to accept it, I guess. |
| 28 | if not permit_osx_workaroundscip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/permit_osx_workaround().(m1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m1., m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m2.): |
| 29 | raise RuntimeErrorscip-python python python-stdlib 3.11 builtins/RuntimeError#(f'mtime of {f1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f1.!r} ({m1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m1.!r}) != mtime of {f2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f2.!r} ({m2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/m2.!r})') |
| 30 | import filecmpscip-python python python-stdlib 3.11 filecmp/__init__: |
| 31 | if not filecmpscip-python python python-stdlib 3.11 filecmp/__init__:.cmpscip-python python python-stdlib 3.11 filecmp/cmp().(f1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f1., f2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f2.): |
| 32 | raise RuntimeErrorscip-python python python-stdlib 3.11 builtins/RuntimeError#(f'{f1scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f1.!r} != {f2scip-python python meson 1.11.1 `test cases.common.14 configure file.check_file`/f2.!r}') |
| 33 | else: |
| 34 | raise AssertionErrorscip-python python python-stdlib 3.11 builtins/AssertionError# |