Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#12488 closed defect (fixed)

Test failures due to change in exception message

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 0.12.8
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

Fixed test failures in trac.admin.tests.console due to differences in exception messages.

API Changes:
Internal Changes:

Description

I'm seeing some test failures on 0.12-stable with Python 2.7.11, with any database and the following packages:

Babel==0.9.6
configobj==5.0.6
docutils==0.12
Genshi==0.6
lxml==3.6.0
MySQL-python==1.2.5
psycopg2==2.6.1
Pygments==1.6
pytz==2016.4
six==1.10.0
twill==0.9.1
======================================================================
FAIL: test_component_add_error_already_exists (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 350, in test_component_add_error_already_exists
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: column name is not unique\n' != u'IntegrityError: UNIQUE constraint failed: component.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: column name is not unique
+IntegrityError: UNIQUE constraint failed: component.name
 


======================================================================
FAIL: test_component_rename_error_bad_new_name (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 381, in test_component_rename_error_bad_new_name
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: column name is not unique\n' != u'IntegrityError: UNIQUE constraint failed: component.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: column name is not unique
+IntegrityError: UNIQUE constraint failed: component.name
 


======================================================================
FAIL: test_milestone_add_error_already_exists (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 963, in test_milestone_add_error_already_exists
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: column name is not unique\n' != u'IntegrityError: UNIQUE constraint failed: milestone.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: column name is not unique
+IntegrityError: UNIQUE constraint failed: milestone.name
 


======================================================================
FAIL: test_priority_add_error_already_exists (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 593, in test_priority_add_error_already_exists
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: columns type, name are not unique\n' != u'IntegrityError: UNIQUE constraint failed: enum.type, enum.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: columns type, name are not unique
+IntegrityError: UNIQUE constraint failed: enum.type, enum.name
 


======================================================================
FAIL: test_priority_change_error_bad_new_name (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 624, in test_priority_change_error_bad_new_name
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: columns type, name are not unique\n' != u'IntegrityError: UNIQUE constraint failed: enum.type, enum.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: columns type, name are not unique
+IntegrityError: UNIQUE constraint failed: enum.type, enum.name
 


======================================================================
FAIL: test_severity_add_error_already_exists (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 713, in test_severity_add_error_already_exists
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: columns type, name are not unique\n' != u'IntegrityError: UNIQUE constraint failed: enum.type, enum.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: columns type, name are not unique
+IntegrityError: UNIQUE constraint failed: enum.type, enum.name
 


======================================================================
FAIL: test_severity_change_error_bad_new_name (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 747, in test_severity_change_error_bad_new_name
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: columns type, name are not unique\n' != u'IntegrityError: UNIQUE constraint failed: enum.type, enum.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: columns type, name are not unique
+IntegrityError: UNIQUE constraint failed: enum.type, enum.name
 


======================================================================
FAIL: test_ticket_type_add_error_already_exists (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 462, in test_ticket_type_add_error_already_exists
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: columns type, name are not unique\n' != u'IntegrityError: UNIQUE constraint failed: enum.type, enum.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: columns type, name are not unique
+IntegrityError: UNIQUE constraint failed: enum.type, enum.name
 


======================================================================
FAIL: test_ticket_type_change_error_bad_new_name (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 493, in test_ticket_type_change_error_bad_new_name
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: columns type, name are not unique\n' != u'IntegrityError: UNIQUE constraint failed: enum.type, enum.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: columns type, name are not unique
+IntegrityError: UNIQUE constraint failed: enum.type, enum.name
 


======================================================================
FAIL: test_version_add_error_already_exists (trac.admin.tests.console.TracadminTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 839, in test_version_add_error_already_exists
    self.assertEqual(self.expected_results[test_name], output)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/admin/tests/console.py", line 183, in assertEqual
    (expected_results, output, output_diff))
AssertionError: u'IntegrityError: column name is not unique\n' != u'IntegrityError: UNIQUE constraint failed: version.name\n'
--- expected
+++ actual
@@ -1,2 +1,2 @@
-IntegrityError: column name is not unique
+IntegrityError: UNIQUE constraint failed: version.name
 


----------------------------------------------------------------------
Ran 1184 tests in 10.089s

FAILED (failures=10)
make: *** [unit-test] Error 1

Attachments (0)

Change History (2)

comment:1 by Ryan J Ollos, 9 years ago

Owner: set to Ryan J Ollos
Release Notes: modified (diff)
Status: newassigned

It appears the issue was addressed for 1.0-stable in [10180#file1]. The issue could also be addressed through #11419, but I'm not sure I want to take the time to prepare those changes for 0.12-stable.

Proposed backporting of changes in [2ba9cdf3/rjollos.git].

comment:2 by Ryan J Ollos, 9 years ago

Resolution: fixed
Status: assignedclosed

Committed to 0.12-stable in [14806].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.