spyoungtech / behave-webdriver

Selenium webdriver step library for use with the behave BDD testing framework
MIT License
62 stars 21 forks source link

sre_constants.error: nothing to repeat #86

Open gfiedler opened 3 years ago

gfiedler commented 3 years ago

When I use behave-webdriver with Python 2.7.1, then I get an error "sre_constants.error: nothing to repeat".

This is fixed in current versions of Python 2.7 and does not throw an exception anymore. See Python Issue18647.

I can not upgrade Python, because I need a special Python interpreter, which is only available for Python 2.7.1.

Replacing "([^"]*)?" by "([^"]+)?" is a compatible fix, so behave-webdriver will also work with Python 2.7.1.