BIND 10 #1523: noisy bind10_test.py unittest with python 3.2

BIND 10 Development do-not-reply at isc.org
Thu Dec 22 00:01:50 UTC 2011


#1523: noisy bind10_test.py unittest with python 3.2
-------------------------------------+-------------------------------------
            Reporter:  jreed         |                        Owner:
                Type:  defect        |                       Status:  new
            Priority:  minor         |                    Milestone:  New
           Component:  Boss of BIND  |  Tasks
           Sensitive:  0             |                     Keywords:
         Sub-Project:  Core          |              Defect Severity:  Low
Estimated Difficulty:  0             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 This was with python 3.2.  This is so noisy it appeared to be an error
 (even though didn't fail):

 {{{

 Running test: bind10_test.py
 ......................../home/jreed/builder/work/BIND10/20111221221956
 -DebianLinux-x86_64-GCC/build/src/bin/bind10/tests/bind10_test.py:1017:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='./bind10.pid'
 mode='r' encoding='UTF-8'>
   self.assertEqual(my_pid, int(open(self.pid_file, "r").read()))
 /home/jreed/builder/work/BIND10/20111221221956-DebianLinux-
 x86_64-GCC/build/src/bin/bind10/tests/bind10_test.py:1023:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='./bind10.pid'
 mode='w' encoding='UTF-8'>
   open(self.pid_file, "w").write('dummy data\n')
 ../home/jreed/builder/work/BIND10/20111221221956-DebianLinux-
 x86_64-GCC/build/src/bin/bind10/tests/bind10_test.py:1041:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='./bind10.pid'
 mode='w' encoding='UTF-8'>
   open(self.pid_file, "w").write(dummy_data)
 /home/jreed/builder/work/BIND10/20111221221956-DebianLinux-
 x86_64-GCC/build/src/bin/bind10/tests/bind10_test.py:1043:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='./bind10.pid'
 mode='r' encoding='UTF-8'>
   self.assertEqual(dummy_data, open(self.pid_file, "r").read())
 ./home/jreed/builder/work/BIND10/20111221221956-DebianLinux-
 x86_64-GCC/build/src/bin/bind10/tests/bind10_test.py:1028:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='./bind10.pid'
 mode='w' encoding='UTF-8'>
   open(self.pid_file, "w").write(dummy_data)
 /home/jreed/builder/work/BIND10/20111221221956-DebianLinux-
 x86_64-GCC/build/src/bin/bind10/tests/bind10_test.py:1032:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='./bind10.pid'
 mode='r' encoding='UTF-8'>
   self.assertEqual(dummy_data, open(self.pid_file, "r").read())
 ...../usr/lib/python3.2/unittest/case.py:370: ResourceWarning: unclosed
 file <_io.FileIO name=8 mode='wb'>
   function()
 ./home/jreed/builder/work/BIND10/20111221221956-DebianLinux-
 x86_64-GCC/build/src/bin/bind10/bind10_src.py:162: ResourceWarning:
 unclosed file <_io.FileIO name=9 mode='wb'>
   preexec_fn=self._preexec_work)
 /usr/lib/python3.2/unittest/case.py:370: ResourceWarning: unclosed file
 <_io.FileIO name=10 mode='wb'>
   function()
 ...........
 ----------------------------------------------------------------------
 Ran 44 tests in 1.796s

 }}}

 On different Debian system with python 3.1 I don't see this.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1523>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list