Commits

Anonymous committed 9e389d3

Test and fix for Issue 1338: Don't raise an error when closing an epoll fd twice.

Comments (0)

Files changed (2)

pypy/module/select/interp_epoll.py

         return space.wrap(self.epfd)
 
     def descr_close(self, space):
-        self.check_closed(space)
         self.close()
 
     @unwrap_spec(eventmask=int)

pypy/module/select/test/test_epoll.py

 
         server.close()
         ep.unregister(fd)
+
+    def test_close_twice(self):
+        import select
+
+        ep = select.epoll()
+        ep.close()
+        ep.close()