Skip to content

Commit 8c1aa9a

Browse files
committed
Merge branch 'master' of github.com:pytest-dev/pytest-bdd
2 parents dfed371 + 2a1c451 commit 8c1aa9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Install pytest-bdd
3535
pip install pytest-bdd
3636

3737

38-
The minimum required version of pytest is 2.8.1.
38+
The minimum required version of pytest is 3.3.2
3939

4040

4141
Example
@@ -974,13 +974,13 @@ Using unicode in the feature files
974974
----------------------------------
975975

976976
As mentioned above, by default, utf-8 encoding is used for parsing feature files.
977-
For steps definition, you can both use unicode- and bytestrings equally.
978-
However, for argumented steps, if you need to use unicode symbols in it's regular expression, use `u` sign with regex:
977+
For steps definition, you should use unicode strings, which is the default in python 3.
978+
If you are on python 2, make sure you use unicode strings by prefixing them with the `u` sign.
979979

980980

981981
.. code-block:: python
982982
983-
@given(re.compile(u"у мене є рядок який містить '{0}'".format('(?P<content>.+)')))
983+
@given(parsers.re(u"у мене є рядок який містить '{0}'".format(u'(?P<content>.+)')))
984984
def there_is_a_string_with_content(content, string):
985985
"""Create string with unicode content."""
986986
string['content'] = content

0 commit comments

Comments
 (0)