/usr/lib/python3/dist-packages/postgresql/test/support.py is in python3-postgresql 1.1.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##
# .test.support
##
"""
Executable module used by test_* modules to mimic a command.
"""
import sys
def pg_config(*args):
data = """FOO=BaR
FEH=YEAH
version=NAY
"""
sys.stdout.write(data)
if __name__ == '__main__':
if sys.argv[1:]:
cmd = sys.argv[1]
if cmd in globals():
cmd = globals()[cmd]
cmd(sys.argv[2:])
sys.exit(0)
sys.stderr.write("no valid entry point referenced")
sys.exit(1)
|