Lines Matching defs:sys
9 import sys
70 self.assertEqual(support.get_original_stdout(), sys.stdout)
74 self.assertIn("sched", sys.modules)
76 self.assertNotIn("sched", sys.modules)
113 sys.path.insert(0, os.curdir)
117 self.assertIn(TESTFN, sys.modules)
120 self.assertNotIn(TESTFN, sys.modules)
122 del sys.path[0]
332 self.assertIn("foo", sys.path)
333 self.assertIn("bar", sys.path)
334 self.assertNotIn("foo", sys.path)
335 self.assertNotIn("bar", sys.path)
344 print("hello", file=sys.stderr)
351 # call test code that consumes from sys.stdin
500 cmd = [sys.executable, *args, '-c', code]
695 if support.is_emscripten or sys.platform == "win32":