Lines Matching defs:sys
6 import sys
30 self.real_stdin = sys.stdin
31 sys.stdin = _FakeInput(self.input)
32 self.orig_trace = sys.gettrace() if hasattr(sys, 'gettrace') else None
35 sys.stdin = self.real_stdin
37 sys.settrace(self.orig_trace)
864 ... import pdb, sys; inst = pdb.Pdb(nosigint=True, readrc=False)
866 ... inst.botframe = sys._getframe() # hackery to get the right botframe
882 -> inst.botframe = sys._getframe() # hackery to get the right botframe
1469 ... sess.set_trace(sys._getframe())
1707 @unittest.skipIf(sys.flags.safe_path,
1708 'PYTHONSAFEPATH changes default sys.path')
1711 cmd = [sys.executable, '-m', 'pdb'] + pdb_args
1810 cmd = [sys.executable, '-m', 'pdb', os_helper.TESTFN]
1894 cmd = [sys.executable, '-u', os_helper.TESTFN]
1924 cmd = [sys.executable, '-u', os_helper.TESTFN]
1979 cmd = [sys.executable, 'main.py']
2022 cmd = [sys.executable, 'main.py']
2024 if sys.platform == 'win32':
2046 resources.enter_context(patch('sys.stdout', stdout))
2250 '''When running `python foo.py` sys.path[0] is an absolute path. `python -m pdb foo.py` should behave the same'''
2252 import sys
2253 print('sys.path[0] is', sys.path[0])
2258 expected = f'(Pdb) sys.path[0] is {os.path.realpath(cwd)}'
2266 '''When running `python foo.py` sys.path[0] resolves symlinks. `python -m pdb foo.py` should behave the same'''
2268 import sys
2269 print('sys.path[0] is', sys.path[0])
2277 expected = f'(Pdb) sys.path[0] is {dir_one}'
2339 import sys
2349 mod = type(sys)("gh93696")