def dump_state(self, call_no): """Get the state dump at the specified call no.""" p = self._retrace(["-D", str(call_no)]) state = jsondiff.load(p.stdout) p.wait() return state.get("parameters", {})
def dump_state(self, call_no): '''Get the state dump at the specified call no.''' p = self._retrace([ '-D', str(call_no), ]) state = jsondiff.load(p.stdout) p.wait() return state.get('parameters', {})
def dump_state(self, call_no): '''Get the state dump at the specified call no.''' cmd = [ options.retrace, '-D', str(call_no), ] + self.args p = subprocess.Popen(cmd, env=self.env, stdout=subprocess.PIPE, stderr=NULL) state = jsondiff.load(p.stdout) p.wait() return state
def getRefState(self, refStateFileName): stream = open(refStateFileName, 'rt') from jsondiff import load state = load(stream, strip_images=False) self.adjustRefState(state) return state