summaryrefslogtreecommitdiff
path: root/test/lib/requires.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/requires.py')
-rw-r--r--test/lib/requires.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/lib/requires.py b/test/lib/requires.py
index 70a2a6036..640af671e 100644
--- a/test/lib/requires.py
+++ b/test/lib/requires.py
@@ -404,4 +404,11 @@ def skip_mysql_on_windows(fn):
skip_if(_has_mysql_on_windows,
"Not supported on MySQL + Windows"
)
- ) \ No newline at end of file
+ )
+
+def english_locale_on_postgresql(fn):
+ return _chain_decorators_on(
+ fn,
+ skip_if(lambda: testing.against('postgresql') \
+ and not testing.db.scalar('SHOW LC_COLLATE').startswith('en'))
+ )