[infrae.testbrowser][Sylvain Viollon] Eat errors on cleanup.
[email protected] Tue, 08 Oct 2013 15:56:06 +0200
| Newsgroups | gmane.comp.web.zope.silva.cvs |
|---|---|
| Message-ID | <[email protected]> |
author: Sylvain Viollon
date: Tue Oct 08 15:56:00 2013 +0200
revision: 142:af574bbd523c in infrae.testbrowser
branch:
details: https://hg.infrae.com/infrae.testbrowser?cmd=changeset;node=af574bbd523c
modified: src/infrae/testbrowser/selenium/driver.py
added:
removed:
log: Eat errors on cleanup.
diffstat:
src/infrae/testbrowser/selenium/driver.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r ab65031f0b5a -r af574bbd523c src/infrae/testbrowser/selenium/driver.py
--- a/src/infrae/testbrowser/selenium/driver.py Thu May 23 11:59:57 2013 +0200
+++ b/src/infrae/testbrowser/selenium/driver.py Tue Oct 08 15:56:00 2013 +0200
@@ -6,6 +6,7 @@
import json
import unittest
import urllib2
+import sys
from zope.testing.cleanup import addCleanUp
@@ -127,6 +128,9 @@
session.quit()
except unittest.SkipTest:
pass
+ except:
+ print >>sys.stderr, \
+ 'Error while clearing the browser connection.'
self.__sessions = {}