ソースを参照

[tests] Fix invalid escape sequences

tags/2018.12.03
Sergey M․ 5年前
コミット
6864855eb1
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 2C393E0F18A9236D
2個のファイルの変更2行の追加2行の削除
  1. +1
    -1
      test/test_compat.py
  2. +1
    -1
      test/test_postprocessors.py

+ 1
- 1
test/test_compat.py ファイルの表示

@@ -39,7 +39,7 @@ class TestCompat(unittest.TestCase):

def test_compat_expanduser(self):
old_home = os.environ.get('HOME')
test_str = 'C:\Documents and Settings\тест\Application Data'
test_str = r'C:\Documents and Settings\тест\Application Data'
compat_setenv('HOME', test_str)
self.assertEqual(compat_expanduser('~'), test_str)
compat_setenv('HOME', old_home or '')


+ 1
- 1
test/test_postprocessors.py ファイルの表示

@@ -14,4 +14,4 @@ from youtube_dl.postprocessor import MetadataFromTitlePP
class TestMetadataFromTitle(unittest.TestCase):
def test_format_to_regex(self):
pp = MetadataFromTitlePP(None, '%(title)s - %(artist)s')
self.assertEqual(pp._titleregex, '(?P<title>.+)\ \-\ (?P<artist>.+)')
self.assertEqual(pp._titleregex, r'(?P<title>.+)\ \-\ (?P<artist>.+)')

読み込み中…
キャンセル
保存