summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-04-01 19:42:54 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-04-01 19:42:54 -0400
commit47a799ecd5d03b78e5d67918302c0da2950d27b8 (patch)
treeef349b936cfe7b158f065459d931409465cfe618 /test
parent2563b33453dee1b55500f13421b7b50ba367a504 (diff)
downloadsqlalchemy-47a799ecd5d03b78e5d67918302c0da2950d27b8.tar.gz
- sql
- [bug] Removed warning when Index is created with no columns; while this might not be what the user intended, it is a valid use case as an Index could be a placeholder for just an index of a certain name. - mssql - [feature] Added interim create_engine flag supports_unicode_binds to PyODBC dialect, to force whether or not the dialect passes Python unicode literals to PyODBC or not.
Diffstat (limited to 'test')
-rw-r--r--test/bootstrap/config.py1
-rw-r--r--test/sql/test_constraints.py8
2 files changed, 3 insertions, 6 deletions
diff --git a/test/bootstrap/config.py b/test/bootstrap/config.py
index edf94fae5..86dc78bcc 100644
--- a/test/bootstrap/config.py
+++ b/test/bootstrap/config.py
@@ -53,6 +53,7 @@ def _list_dbs(*args):
def _server_side_cursors(options, opt_str, value, parser):
db_opts['server_side_cursors'] = True
+
def _zero_timeout(options, opt_str, value, parser):
warnings.warn("--zero-timeout testing option is now on in all cases")
diff --git a/test/sql/test_constraints.py b/test/sql/test_constraints.py
index 246878624..5ea5a7eda 100644
--- a/test/sql/test_constraints.py
+++ b/test/sql/test_constraints.py
@@ -271,12 +271,8 @@ class ConstraintTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiled
Index, "foo", 5
)
- def test_warn_no_columns(self):
- assert_raises_message(
- exc.SAWarning,
- "No column names or expressions given for Index.",
- Index, "foo"
- )
+ def test_no_warning_w_no_columns(self):
+ Index(name="foo")
def test_raise_clauseelement_not_a_column(self):
m = MetaData()