Skip to content

Commit

Permalink
Merge branch 'fix_timeout_exceeded_message'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Trifonov committed Mar 10, 2016
2 parents e34a9a5 + f1d5747 commit 3a77dee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion seismograph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from .datastructures import Context


__version__ = '0.2.3'
__version__ = '0.2.4'


__all__ = (
Expand Down
13 changes: 9 additions & 4 deletions seismograph/ext/selenium/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,19 @@ def waiting_for(self,
delay=None,
args=None,
kwargs=None):
delay = delay or self.config.POLLING_DELAY
timeout = timeout or self.config.POLLING_TIMEOUT
exc_cls = exc_cls or polling.PollingTimeoutExceeded
message = message or 'Wait timeout "{}" has been exceeded'.format(timeout)

return waiting_for(
callback,
args=args,
kwargs=kwargs,
delay=delay or self.config.POLLING_DELAY,
timeout=timeout or self.config.POLLING_TIMEOUT,
exc_cls=exc_cls or polling.PollingTimeoutExceeded,
message=message or 'Wait timeout "{}" has been exceeded'.format(timeout),
delay=delay,
timeout=timeout,
exc_cls=exc_cls,
message=message,
)

@contextmanager
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def install_package():
},
test_suite='tests',
classifiers=(
'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
'Framework :: Seismograph',
'Natural Language :: Russian',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 3a77dee

Please sign in to comment.