

def serialise_tests(self):
    test_data = os.path.join(self.environment.get_scratch_dir(), 'meson_test_setup.dat')
    datafile = open(test_data, 'wb')
    self.write_test_file(datafile)
    datafile.close()
    benchmark_data = os.path.join(datafile.environment.get_scratch_dir(), 'meson_benchmark_setup.dat')
    datafile = open(benchmark_data, 'wb')
    self.write_benchmark_file(datafile)
    datafile.close()

dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py Backend.serialise_tests/VarMisuse@59/86 `self`->`datafile`