comparison tests/hghave.py @ 25859:1619563959b3 stable

tests: disable test of buffer overflow in parsers.c if --pure It fails with AttributeError and there's no benefit to make it runnable with pure Python code.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 19 Jul 2015 15:27:28 +0900
parents e93036747902
children 8107c308ff22
comparison
equal deleted inserted replaced
25858:f8aead51aec0 25859:1619563959b3
374 return util.safehasattr(__future__, "absolute_import") 374 return util.safehasattr(__future__, "absolute_import")
375 375
376 @check("py3k", "running with Python 3.x") 376 @check("py3k", "running with Python 3.x")
377 def has_py3k(): 377 def has_py3k():
378 return 3 == sys.version_info[0] 378 return 3 == sys.version_info[0]
379
380 @check("pure", "running with pure Python code")
381 def has_pure():
382 return os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure"