Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f7f3d7

Browse files
committed
Issue #19928: Fix test on Windows
2 parents 20719ac + ea6854a commit 7f7f3d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_reprlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def inner():
173173
return x
174174
return inner
175175
x = get_cell().__closure__[0]
176-
self.assertRegex(repr(x),
177-
r'<cell at 0x[0-9a-f]+: int object at 0x[0-9a-f]+>')
176+
self.assertRegex(repr(x), r'<cell at 0x[0-9A-Fa-f]+: '
177+
r'int object at 0x[0-9A-Fa-f]+>')
178178
self.assertRegex(r(x), r'<cell at 0x.*\.\.\..*>')
179179

180180
def test_descriptors(self):

0 commit comments

Comments
 (0)