diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-11 14:57:08 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-11-11 14:57:08 -0500 |
| commit | 3cf0a1642eafe53e3c3b40b06cf105a32676a27f (patch) | |
| tree | 314230b1febe25874a92ae806e0d95913322375a /lib/sqlalchemy/testing/exclusions.py | |
| parent | 5c7754d685df3715da76327c7401e99177611daf (diff) | |
| download | sqlalchemy-3cf0a1642eafe53e3c3b40b06cf105a32676a27f.tar.gz | |
Test fixture improvements
- ensure we escape out percent signs when a CompiledSQL or RegexSQL
has percent signs in the SQL or in the parameter repr
- to support combinations, print out complete test name in skip
messages, py.test environment gives us a way to do this
Change-Id: Ia9e62f7c1026c1465986144c5757e35fc164a2b8
Diffstat (limited to 'lib/sqlalchemy/testing/exclusions.py')
| -rw-r--r-- | lib/sqlalchemy/testing/exclusions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/exclusions.py b/lib/sqlalchemy/testing/exclusions.py index 86f3b7aac..97cee7e27 100644 --- a/lib/sqlalchemy/testing/exclusions.py +++ b/lib/sqlalchemy/testing/exclusions.py @@ -141,7 +141,10 @@ class compound(object): for skip in self.skips: if self._check_combinations(combination, skip) and skip(cfg): - msg = "'%s' : %s" % (fn.__name__, skip._as_string(cfg)) + msg = "'%s' : %s" % ( + config.get_current_test_name(), + skip._as_string(cfg), + ) config.skip_test(msg) try: |
