diff -Nru python-xvfbwrapper-0.2.4/debian/changelog python-xvfbwrapper-0.2.4/debian/changelog --- python-xvfbwrapper-0.2.4/debian/changelog 2014-06-28 10:29:13.000000000 +0200 +++ python-xvfbwrapper-0.2.4/debian/changelog 2016-11-02 13:55:17.000000000 +0100 @@ -1,3 +1,10 @@ +python-xvfbwrapper (0.2.4-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix resource cleak missing close of /dev/null. + + -- Etienne Fabian Wed, 02 Nov 2016 13:54:56 +0100 + python-xvfbwrapper (0.2.4-1) unstable; urgency=medium * Initial release. (Closes: #752990) diff -Nru python-xvfbwrapper-0.2.4/debian/patches/resourceleak.patch python-xvfbwrapper-0.2.4/debian/patches/resourceleak.patch --- python-xvfbwrapper-0.2.4/debian/patches/resourceleak.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-xvfbwrapper-0.2.4/debian/patches/resourceleak.patch 2016-11-02 13:56:09.000000000 +0100 @@ -0,0 +1,21 @@ +Description: close /dev/null after using it +Author: Etienne Fabian + +--- python-xvfbwrapper-0.2.4.orig/xvfbwrapper.py ++++ python-xvfbwrapper-0.2.4/xvfbwrapper.py +@@ -48,10 +48,11 @@ class Xvfb: + self.vdisplay_num = self.search_for_free_display() + self.xvfb_cmd = ['Xvfb', ':%d' % self.vdisplay_num] + self.xvfb_cmd + +- self.proc = subprocess.Popen(self.xvfb_cmd, +- stdout=open(os.devnull), +- stderr=open(os.devnull), +- ) ++ with open(os.devnull) as devnull: ++ self.proc = subprocess.Popen(self.xvfb_cmd, ++ stdout=devnull, ++ stderr=devnull, ++ ) + time.sleep(0.2) # give Xvfb time to start + ret_code = self.proc.poll() + if ret_code is None: diff -Nru python-xvfbwrapper-0.2.4/debian/patches/series python-xvfbwrapper-0.2.4/debian/patches/series --- python-xvfbwrapper-0.2.4/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ python-xvfbwrapper-0.2.4/debian/patches/series 2016-11-02 13:55:40.000000000 +0100 @@ -0,0 +1 @@ +resourceleak.patch