def test_windowsErrorExcept(self):
        """
        Verify that when a WindowsError is raised from listdir, catching
        WindowsError works.
        """
        fwp = FakeWindowsPath(self.mktemp())
        self.assertRaises(filepath.UnlistableError, fwp.children)
        self.assertRaises(WindowsError, fwp.children)

        Verify that when a WindowsError is raised from listdir, catching
        WindowsError works.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py