diff options
author | Tom de Vries <tdevries@suse.de> | 2025-04-28 18:03:09 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-04-28 18:03:09 +0200 |
commit | 1c32c7150dc955b62e810367d23535643dcb36d5 (patch) | |
tree | 567830eac700e3fbde5ea86900bfe5620c01b726 /gdb/python/py-value.c | |
parent | f7745f8ceff9772feb60a96791a366b969811300 (diff) | |
download | binutils-1c32c7150dc955b62e810367d23535643dcb36d5.zip binutils-1c32c7150dc955b62e810367d23535643dcb36d5.tar.gz binutils-1c32c7150dc955b62e810367d23535643dcb36d5.tar.bz2 |
[gdb/testsuite] Avoid generating gdb_leak_detector.cpython-<n>.pyc
After running test-case gdb.python/py-color-leak.exp in a container where I
don't have PYTHONDONTWRITEBYTECODE set, I get:
...
$ ls src/gdb/testsuite/gdb.python/__pycache__/
gdb_leak_detector.cpython-313.pyc
...
Fix this by setting sys.dont_write_bytecode to True in the python scripts
importing the module.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/python/py-value.c')
0 files changed, 0 insertions, 0 deletions