comparison mercurial/testing/storage.py @ 43103:c95b2f40db7c

py3: stop normalizing 2nd argument of *attr() to unicode Now that we don't byteify strings, we can stop normalizing the 2nd string argument to getattr() and remove explicit overrides we were using in the code base. We no longer use some helper functions in the source transformer, so we remove those as well. Differential Revision: https://phab.mercurial-scm.org/D7012
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Oct 2019 17:45:05 -0400
parents c59eb1560c44
children 9f70512ae2cf
comparison
equal deleted inserted replaced
43102:829088e87032 43103:c95b2f40db7c
22 from ..interfaces import repository 22 from ..interfaces import repository
23 from ..utils import storageutil 23 from ..utils import storageutil
24 24
25 25
26 class basetestcase(unittest.TestCase): 26 class basetestcase(unittest.TestCase):
27 if not getattr(unittest.TestCase, r'assertRaisesRegex', False): 27 if not getattr(unittest.TestCase, 'assertRaisesRegex', False):
28 assertRaisesRegex = ( # camelcase-required 28 assertRaisesRegex = ( # camelcase-required
29 unittest.TestCase.assertRaisesRegexp 29 unittest.TestCase.assertRaisesRegexp
30 ) 30 )
31 31
32 32