Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-demandimport @ 4801:3a4310e8fe72
test-demandimport: match upper-case hexadecimal
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 05 Jul 2007 19:11:38 +0200 |
parents | e3afa670e484 |
children |
comparison
equal
deleted
inserted
replaced
4798:452d171a1b39 | 4801:3a4310e8fe72 |
---|---|
6 import re | 6 import re |
7 | 7 |
8 rsub = re.sub | 8 rsub = re.sub |
9 def f(obj): | 9 def f(obj): |
10 l = repr(obj) | 10 l = repr(obj) |
11 l = rsub("0x[0-9a-f]+", "0x?", l) | 11 l = rsub("0x[0-9a-fA-F]+", "0x?", l) |
12 l = rsub("from '.*'", "from '?'", l) | 12 l = rsub("from '.*'", "from '?'", l) |
13 return l | 13 return l |
14 | 14 |
15 import os | 15 import os |
16 | 16 |