diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-31 15:22:00 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-31 15:22:00 -0400 |
commit | 3c60d3b1ca492ba77d64111f0378892acaadf36b (patch) | |
tree | 5e2df552a7142cd3bb2ef9e5236db85e5c2859f4 /test/sql/test_defaults.py | |
parent | 903b0a42e71c81ff99494352760c0f92fa7a486d (diff) | |
download | sqlalchemy-3c60d3b1ca492ba77d64111f0378892acaadf36b.tar.gz |
- A new style of warning can be emitted which will "filter" up to
N occurrences of a parameterized string. This allows parameterized
warnings that can refer to their arguments to be delivered a fixed
number of times until allowing Python warning filters to squelch them,
and prevents memory from growing unbounded within Python's
warning registries.
fixes #3178
Diffstat (limited to 'test/sql/test_defaults.py')
-rw-r--r-- | test/sql/test_defaults.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sql/test_defaults.py b/test/sql/test_defaults.py index 7688aba40..3ba2318b4 100644 --- a/test/sql/test_defaults.py +++ b/test/sql/test_defaults.py @@ -1272,8 +1272,9 @@ class UnicodeDefaultsTest(fixtures.TestBase): default = b('foo') assert_raises_message( sa.exc.SAWarning, - "Unicode column received non-unicode default value.", + "Unicode column 'foobar' has non-unicode " + "default value 'foo' specified.", Column, - Unicode(32), + "foobar", Unicode(32), default=default ) |