def tearDown(self):
        """
        Remove the example directory from the path and remove all
        modules loaded by the test from sys.modules.
        """
        sys.modules.clear()
        sys.modules.update(self.originalModules)
        sys.path[:] = self.originalPath

        Remove the example directory from the path and remove all
        modules loaded by the test from sys.modules.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_examples.py