Skip to content

Commit 7c9364b

Browse files
committed
Added some more debugging output for occasional author extraction failures during test. See also [14226].
- Legacy-Id: 14233 Note: SVN reference [14226] has been migrated to Git commit 2150082
1 parent 1a7e9b6 commit 7c9364b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/submit/tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ def do_submission(self, name, rev, group=None, formats=["txt",], author=None):
143143
self.assertEqual(Submission.objects.filter(name=name).count(), 1)
144144
submission = Submission.objects.get(name=name)
145145
if len(submission.authors) != 1:
146-
sys.stderr.write((u"Author name used in test: %s\n"%author).encode('utf8'))
146+
sys.stderr.write("\nAuthor extraction failure.\n")
147+
sys.stderr.write(("Author name used in test: %s\n"%author).encode('utf8'))
148+
sys.stderr.write("Author ascii name: %s\n" % author.ascii)
149+
sys.stderr.write("Author initials: %s\n" % author.initials())
147150
self.assertEqual(len(submission.authors), 1)
148151
a = submission.authors[0]
149152
self.assertEqual(a["name"], author.ascii)

0 commit comments

Comments
 (0)