MCPcopy Create free account
hub / github.com/ipython/ipython / cleanup

Method cleanup

IPython/testing/iptestcontroller.py:160–166  ·  view source on GitHub ↗

Make the non-accessible directory created in setup() accessible again, otherwise deleting the workingdir will fail.

(self)

Source from the content-addressed store, hash-verified

158 self.cmd.extend(self.options.extra_args)
159
160 def cleanup(self):
161 """
162 Make the non-accessible directory created in setup() accessible
163 again, otherwise deleting the workingdir will fail.
164 """
165 os.chmod(self.noaccess, stat.S_IRWXU)
166 TestController.cleanup(self)
167
168 @property
169 def will_run(self):

Callers

nothing calls this directly

Calls 1

cleanupMethod · 0.45

Tested by

no test coverage detected