Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-duplicateoptions.py @ 40363:c3ad9ef0876c
tests: don't emit false failures when sqlite3 is missing
I'm honestly surprised we have buildbot coverage for this, but we do!
Differential Revision: https://phab.mercurial-scm.org/D5150
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 18 Oct 2018 11:14:04 -0400 |
parents | 9abe91a503da |
children | 801c8ca60af5 |
comparison
equal
deleted
inserted
replaced
40362:2f1edf5e0a4b | 40363:c3ad9ef0876c |
---|---|
5 extensions, | 5 extensions, |
6 ui as uimod, | 6 ui as uimod, |
7 ) | 7 ) |
8 | 8 |
9 ignore = {b'highlight', b'win32text', b'factotum', b'beautifygraph'} | 9 ignore = {b'highlight', b'win32text', b'factotum', b'beautifygraph'} |
10 | |
11 try: | |
12 import sqlite3 | |
13 except ImportError: | |
14 ignore.add(b'sqlitestore') | |
10 | 15 |
11 if os.name != 'nt': | 16 if os.name != 'nt': |
12 ignore.add(b'win32mbcs') | 17 ignore.add(b'win32mbcs') |
13 | 18 |
14 disabled = [ext for ext in extensions.disabled().keys() if ext not in ignore] | 19 disabled = [ext for ext in extensions.disabled().keys() if ext not in ignore] |