mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-07 04:06:01 +00:00
Fix doctests for python 2.7
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ API
|
||||
Example::
|
||||
|
||||
>>> from guessit import guessit
|
||||
>>> guessit('Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi')
|
||||
>>> guessit(u'Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi') # doctest: +ALLOW_UNICODE
|
||||
MatchesDict([('title', 'Treme'), ('season', 1), ('episodeNumber', 3), ('episodeTitle', 'Right Place, Wrong Time'), ('format', 'HDTV'), ('videoCodec', 'XviD'), ('releaseGroup', 'NoTV'), ('container', 'avi'), ('mimetype', 'video/x-msvideo'), ('type', 'episode')])
|
||||
|
||||
``MatchesDict`` is a dict that keeps matches ordering.
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ guessit can be use from command line::
|
||||
It can also be used as a python module::
|
||||
|
||||
>>> from guessit import guessit
|
||||
>>> guessit('Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi')
|
||||
>>> guessit(u'Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi') # doctest: +ALLOW_UNICODE
|
||||
MatchesDict([('title', 'Treme'), ('season', 1), ('episodeNumber', 3), ('episodeTitle', 'Right Place, Wrong Time'), ('format', 'HDTV'), ('videoCodec', 'XviD'), ('releaseGroup', 'NoTV'), ('container', 'avi'), ('mimetype', 'video/x-msvideo'), ('type', 'episode')])
|
||||
|
||||
``MatchesDict`` is a dict that keeps matches ordering.
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
[pytest]
|
||||
addopts =-s --ignore=setup.py --ignore=build --doctest-modules --doctest-glob='*.rst'
|
||||
addopts=-s --ignore=setup.py --ignore=build --doctest-modules --doctest-glob='*.rst'
|
||||
|
||||
Reference in New Issue
Block a user