Lines Matching defs:sys
3 import sys
908 current = sys.getrecursionlimit()
909 self.addCleanup(sys.setrecursionlimit, current)
911 # can't use sys.maxint as this doesn't exist in Python 3
912 sys.setrecursionlimit(int(10e8))
981 # shadow a sys attribute
2183 # property defined when it's used with sys.settrace(trace) set.
2198 with patch.dict('sys.modules'):
2199 del sys.modules['unittest.mock']
2205 self.addCleanup(sys.settrace, sys.gettrace())
2206 sys.settrace(trace)