changeset 51251:f9a52a9603f9

tests: ignore test-storage when using Rust This is only relevant for Python code and the SQLite backend, which is in a half-abandoned state.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 31 Oct 2023 17:34:31 +0100
parents 1b23aaf5eb7b
children 5807e3a8865e
files tests/test-storage.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-storage.py	Fri Oct 20 09:12:22 2023 +0200
+++ b/tests/test-storage.py	Tue Oct 31 17:34:31 2023 +0100
@@ -15,6 +15,17 @@
 from mercurial.testing import storage as storagetesting
 
 try:
+    from mercurial import rustext
+
+    rustext.__name__
+    # Does not pass with pure Rust index
+    import sys
+
+    sys.exit(80)
+except ImportError:
+    pass
+
+try:
     from hgext import sqlitestore
 except ImportError:
     sqlitestore = None