fix invalid escape sequence in doi test

This commit is contained in:
Fabien C. Y. Benureau 2023-04-16 16:49:07 +02:00
parent 6b42114722
commit 0ae97c8061
No known key found for this signature in database
GPG Key ID: CE56629494581522
2 changed files with 7 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,7 +2,8 @@
*~ *~
.DS_Store .DS_Store
.eggs .eggs
env.sh
.venvs
*.py[cod] *.py[cod]

View File

@ -20,7 +20,7 @@ class TestDOIStandardization(unittest.TestCase):
self.hard_dois = ( self.hard_dois = (
'10.1175/1520-0485(2002)032<0870:CT>2.0.CO;2', '10.1175/1520-0485(2002)032<0870:CT>2.0.CO;2',
'10.1002/(SICI)1522-2594(199911)42:5<952::AID-MRM16>3.0.CO;2-S', '10.1002/(SICI)1522-2594(199911)42:5<952::AID-MRM16>3.0.CO;2-S',
'10.1579/0044-7447(2006)35\[89:RDUICP\]2.0.CO;2', '10.1579/0044-7447(2006)35[89:RDUICP]2.0.CO;2',
) )
self.currently_not_supported = ( self.currently_not_supported = (
@ -78,3 +78,7 @@ class TestDOIStandardization(unittest.TestCase):
for doi in self.currently_not_supported: for doi in self.currently_not_supported:
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
standardize_doi(doi) standardize_doi(doi)
if __name__ == '__main__':
unittest.main()