Advertisement
Guest User

Untitled

a guest
Apr 8th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ..
  2. ======================================================================
  3. ERROR: test_ticket_16885 (regressiontests.test_runner.tests.Ticket16885RegressionTests)
  4. Features are also confirmed on mirrored databases.
  5. ----------------------------------------------------------------------
  6. Traceback (most recent call last):
  7. File "/home/akaariai/Programming/django/tests/regressiontests/test_runner/tests.py", line 203, in test_ticket_16885
  8. DjangoTestSuiteRunner(verbosity=0).setup_databases()
  9. File "/home/akaariai/Programming/django/tests/django/test/simple.py", line 306, in setup_databases
  10. self.verbosity, autoclobber=not self.interactive)
  11. File "/home/akaariai/Programming/django/tests/django/db/backends/creation.py", line 271, in create_test_db
  12. load_initial_data=False)
  13. File "/home/akaariai/Programming/django/tests/django/core/management/__init__.py", line 150, in call_command
  14. return klass.execute(*args, **defaults)
  15. File "/home/akaariai/Programming/django/tests/django/core/management/base.py", line 248, in execute
  16. sys.exit(1)
  17. SystemExit: 1
  18.  
  19. ======================================================================
  20. FAIL: test_attribute_name_not_python_keyword (regressiontests.inspectdb.tests.InspectDBTestCase)
  21. ----------------------------------------------------------------------
  22. Traceback (most recent call last):
  23. File "/home/akaariai/Programming/django/tests/django/test/testcases.py", line 856, in skip_wrapper
  24. return test_func(*args, **kwargs)
  25. File "/home/akaariai/Programming/django/tests/regressiontests/inspectdb/tests.py", line 17, in test_attribute_name_not_python_keyword
  26. out.getvalue())
  27. AssertionError: 'people_pk = models.ForeignKey(InspectdbPeople, primary_key=True)' not found in u"# This is an auto-generated Django model module.\n# You'll have to do the following manually to clean this up:\n#
  28.  
  29. <SNIP>
  30.  
  31. ======================================================================
  32. FAIL: test_parsing_errors (regressiontests.test_utils.tests.HTMLEqualTests)
  33. ----------------------------------------------------------------------
  34. Traceback (most recent call last):
  35. File "/home/akaariai/Programming/django/tests/regressiontests/test_utils/tests.py", line 426, in test_parsing_errors
  36. parse_html('<!--')
  37. AssertionError: HTMLParseError not raised
  38.  
  39. ----------------------------------------------------------------------
  40. Ran 4694 tests in 2986.866s
  41. FAILED (failures=2, errors=1, skipped=85, expected failures=2)
  42.  
  43. ************
  44. * ANALYSIS *
  45. ************
  46. The test_utils error is due to my Python version (2.7.3rc2). It is not oracle related, and is covered in ticket #18027.
  47.  
  48. The inspectdb failure is caused by erroneous query in oracle/inspection.py get_indexes() and is covered by ticket #18082.
  49.  
  50. The test_runner failure is caused by model validation. The reason is that somewhere Oracle sets null=True for character fields, but this causes model validation errors for primary key fields. I think I have seen discussion about this, but I can find a ticket. Here is the full output of test_runner tests:
  51.  
  52. ./runtests.py --settings=test_oracle test_runner
  53. Creating test database for alias 'default'...
  54. Creating test user...
  55. Creating test database for alias 'other'...
  56. Creating test user...
  57. ...........sError: One or more models did not validate:
  58. sessions.session: "session_key": Primary key fields cannot have null=True.
  59.  
  60. E.
  61. ======================================================================
  62. ERROR: test_ticket_16885 (regressiontests.test_runner.tests.Ticket16885RegressionTests)
  63. Features are also confirmed on mirrored databases.
  64. ----------------------------------------------------------------------
  65. Traceback (most recent call last):
  66. File "/home/akaariai/Programming/django/tests/regressiontests/test_runner/tests.py", line 203, in test_ticket_16885
  67. DjangoTestSuiteRunner(verbosity=0).setup_databases()
  68. File "/home/akaariai/Programming/django/tests/django/test/simple.py", line 306, in setup_databases
  69. self.verbosity, autoclobber=not self.interactive)
  70. File "/home/akaariai/Programming/django/tests/django/db/backends/creation.py", line 271, in create_test_db
  71. load_initial_data=False)
  72. File "/home/akaariai/Programming/django/tests/django/core/management/__init__.py", line 150, in call_command
  73. return klass.execute(*args, **defaults)
  74. File "/home/akaariai/Programming/django/tests/django/core/management/base.py", line 248, in execute
  75. sys.exit(1)
  76. SystemExit: 1
  77.  
  78. ----------------------------------------------------------------------
  79. Ran 14 tests in 1.003s
  80.  
  81. FAILED (errors=1, skipped=1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement