summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Kelly <ian.g.kelly@gmail.com>2010-01-19 18:09:03 +0000
committerIan Kelly <ian.g.kelly@gmail.com>2010-01-19 18:09:03 +0000
commitfb5f8d7b14c6613dcfa600da11ea499c8551ba11 (patch)
tree5a056010230b7ec1cd4a7db4777d5f7784faff1d
parentb3e1162ca507c87ecea70d8100d24f431a8433ae (diff)
Fixed an Oracle test failure introduced in [12226].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/model_package/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/modeltests/model_package/tests.py b/tests/modeltests/model_package/tests.py
index 7d2a063cc9..cf1785f708 100644
--- a/tests/modeltests/model_package/tests.py
+++ b/tests/modeltests/model_package/tests.py
@@ -66,8 +66,10 @@ __test__ = {'API_TESTS': """
>>> Article.publications.through._meta.fields[2].get_attname_column()
('publication_id', 'publication_id')
->>> Article._meta.get_field('publications').m2m_db_table()
-'model_package_article_publications'
+# The oracle backend truncates the name to 'model_package_article_publ233f'.
+>>> Article._meta.get_field('publications').m2m_db_table() \\
+... in ('model_package_article_publications', 'model_package_article_publ233f')
+True
>>> Article._meta.get_field('publications').m2m_column_name()
'article_id'