Show More
@@ -8,6 +8,11 b' from mercurial import (' | |||
|
8 | 8 | |
|
9 | 9 | ignore = {b'highlight', b'win32text', b'factotum', b'beautifygraph'} |
|
10 | 10 | |
|
11 | try: | |
|
12 | import sqlite3 | |
|
13 | except ImportError: | |
|
14 | ignore.add(b'sqlitestore') | |
|
15 | ||
|
11 | 16 | if os.name != 'nt': |
|
12 | 17 | ignore.add(b'win32mbcs') |
|
13 | 18 |
@@ -17,9 +17,12 b' from mercurial.testing import (' | |||
|
17 | 17 | storage as storagetesting, |
|
18 | 18 | ) |
|
19 | 19 | |
|
20 | from hgext import ( | |
|
21 | sqlitestore, | |
|
22 | ) | |
|
20 | try: | |
|
21 | from hgext import ( | |
|
22 | sqlitestore, | |
|
23 | ) | |
|
24 | except ImportError: | |
|
25 | sqlitestore = None | |
|
23 | 26 | |
|
24 | 27 | try: |
|
25 | 28 | from mercurial import zstd |
@@ -110,12 +113,13 b' def addrawrevisionsqlite(self, fl, tr, n' | |||
|
110 | 113 | else: |
|
111 | 114 | raise error.Abort(b'must supply rawtext or delta arguments') |
|
112 | 115 | |
|
113 | sqlitefileindextests = storagetesting.makeifileindextests( | |
|
114 | makesqlitefile, maketransaction, addrawrevisionsqlite) | |
|
115 | sqlitefiledatatests = storagetesting.makeifiledatatests( | |
|
116 | makesqlitefile, maketransaction, addrawrevisionsqlite) | |
|
117 | sqlitefilemutationtests = storagetesting.makeifilemutationtests( | |
|
118 | makesqlitefile, maketransaction, addrawrevisionsqlite) | |
|
116 | if sqlitestore is not None: | |
|
117 | sqlitefileindextests = storagetesting.makeifileindextests( | |
|
118 | makesqlitefile, maketransaction, addrawrevisionsqlite) | |
|
119 | sqlitefiledatatests = storagetesting.makeifiledatatests( | |
|
120 | makesqlitefile, maketransaction, addrawrevisionsqlite) | |
|
121 | sqlitefilemutationtests = storagetesting.makeifilemutationtests( | |
|
122 | makesqlitefile, maketransaction, addrawrevisionsqlite) | |
|
119 | 123 | |
|
120 | 124 | if __name__ == '__main__': |
|
121 | 125 | silenttestrunner.main(__name__) |
General Comments 0
You need to be logged in to leave comments.
Login now