def watch_transient_file(self, filename, mask, proc_class):
        dirname = os.path.dirname(filename)
        if dirname == '':
            return {}  # Maintains coherence with add_watch()
        basename = os.path.basename(filename)
        # Assuming we are watching at least for IN_CREATE and IN_DELETE
        mask |= IN_CREATE | IN_DELETE

        def cmp_name(event):
            if getattr(event, 'name') is None:
                return False
            return basename == event.name
        return self.add_watch(dirname, mask,
                              proc_fun=proc_class(ChainIfTrue(func=cmp_name)),
                              rec=False,
                              auto_add=False, do_glob=False,
                              exclude_filter=lambda path: False)
If no cluster option and no environment, script fails
dataset/ETHPy150Open seb-m/pyinotify/python2/pyinotify.py/WatchManager.watch_transient_file--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_script.py/ClusterConfigurationTests.test_missing_environment