Issue #19928: Fix test on Windows
This commit is contained in:
commit
7f7f3d7879
|
@ -173,8 +173,8 @@ class ReprTests(unittest.TestCase):
|
||||||
return x
|
return x
|
||||||
return inner
|
return inner
|
||||||
x = get_cell().__closure__[0]
|
x = get_cell().__closure__[0]
|
||||||
self.assertRegex(repr(x),
|
self.assertRegex(repr(x), r'<cell at 0x[0-9A-Fa-f]+: '
|
||||||
r'<cell at 0x[0-9a-f]+: int object at 0x[0-9a-f]+>')
|
r'int object at 0x[0-9A-Fa-f]+>')
|
||||||
self.assertRegex(r(x), r'<cell at 0x.*\.\.\..*>')
|
self.assertRegex(r(x), r'<cell at 0x.*\.\.\..*>')
|
||||||
|
|
||||||
def test_descriptors(self):
|
def test_descriptors(self):
|
||||||
|
|
Loading…
Reference in New Issue