|
kill.skip=skipKill+++deftest_killESRCH(self):+@@-95,6+105,19@@+#HopefullythereisnoprocesswithPID2**31-1+exc=self.assertRaises(OSError,lockfile.kill,2**31-1,0)+self.assertEqual(exc.errno,errno.ESRCH)++test_killESRCH.skip=skipKill++++++deftest_noKillCall(self):++&quot;&quot;&quot;++VerifythatwhenL{lockfile.kill}doesendupasNone(e.g.onWindows++withoutpywin32),itdoesn'tendupbeingcalledandraisinga++L{TypeError}.++&quot;&quot;&quot;++self.patch(lockfile,&quot;kill&quot;,None)++fl=lockfile.FilesystemLock(self.mktemp())++fl.lock()++self.assertFalse(fl.lock())++++Index:twisted/test/test_shortcut.py+===================================================================+---twisted/test/test_shortcut.py(revision26935)++++twisted/test/test_shortcut.py(workingcopy)+@@-6,7+6,12@@+importos+ifos.name=='nt':++-fromtwisted.pythonimportshortcut++skipWindowsNopywin32=None++try:++fromtwisted.pythonimportshortcut++exceptImportError:++skipWindowsNopywin32=(&quot;Onwindows,twisted.python.shortcutisnot&quot;++&quot;availableintheabsenceofwin32com.&quot;)+importos.path+importsys++@@-18,3+23,4@@+self.assert_(os.path.exists(tempname))+sc=shortcut.open(tempname)+self.assert_(sc.GetPath(0)[0].endswith('test_shortcut.py'))++ShortcutTest.skip=skipWindowsNopywin32+Index:twisted/internet/test/test_process.py+===================================================================+---twisted/internet/test/test_process.py(revision26935)++++twisted/internet/test/test_process.py(workingcopy)+@@-20,6+20,13@@+fromtwisted.internet.errorimportProcessDone,PotentialZombieWarning+fromtwisted.internet.errorimportProcessTerminated+++skipWindowsNopywin32=None++ifplatform.isWindows():++try:++importwin32process++exceptImportError:++skipWindowsNopywin32=(&quot;Onwindows,spawnProcessisnotavailable&quot;++&quot;intheabsenceofwin32process.&quot;)++classProcessTestsBuilderBase(ReactorBuilder):+defspawnProcess(self,reactor):+@@-302,6+309,7@@+self.runReactor(reactor)++++ProcessTestsBuilder.skip=skipWindowsNopywin32+globals().update(ProcessTestsBuilder.makeTestCaseClasses())++</ins></span></pre></div></div></body></html>t"> |
|