Browse files

Fixed an Oracle test failure introduced in [12226].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b3e1162 commit fb5f8d7b14c6613dcfa600da11ea499c8551ba11 @ikelly ikelly committed Jan 19, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/modeltests/model_package/tests.py
View
6 tests/modeltests/model_package/tests.py
@@ -66,8 +66,10 @@ class Meta:
>>> 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'

0 comments on commit fb5f8d7

Please sign in to comment.