# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1291236368 -3600 # Node ID c0290fc6b486f2fc649a936ab8a063f1c9ca2973 # Parent 4db5bfea1b07bdc9d68a6c2e4df5f383ad7e82f4 test-demandimport.py: PyPy support The stringification of sys.stderr is different in PyPy: $ pypy -c 'import sys; print sys.stderr' ', mode 'w' at 0x00a42080> $ python -c 'import sys; print sys.stderr' ', mode 'w' at 0x10025a270> The test will now ignore the exact value between the angle brackets. diff -r 4db5bfea1b07 -r c0290fc6b486 tests/test-demandimport.py --- a/tests/test-demandimport.py Wed Dec 01 21:46:08 2010 +0100 +++ b/tests/test-demandimport.py Wed Dec 01 21:46:08 2010 +0100 @@ -8,6 +8,7 @@ l = repr(obj) l = rsub("0x[0-9a-fA-F]+", "0x?", l) l = rsub("from '.*'", "from '?'", l) + l = rsub("'<[a-z]*>'", "''", l) return l import os diff -r 4db5bfea1b07 -r c0290fc6b486 tests/test-demandimport.py.out --- a/tests/test-demandimport.py.out Wed Dec 01 21:46:08 2010 +0100 +++ b/tests/test-demandimport.py.out Wed Dec 01 21:46:08 2010 +0100 @@ -11,5 +11,5 @@ fred.sub = fred = re = -re.stderr = ', mode 'w' at 0x?> +re.stderr = ', mode 'w' at 0x?> re =