Bug 1280404 - PostgreSQL testsuite expects different python traceback format
Summary: PostgreSQL testsuite expects different python traceback format
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: postgresql
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Raiskup
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-11 16:45 UTC by Pavel Raiskup
Modified: 2015-11-12 10:59 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-12 10:59:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Raiskup 2015-11-11 16:45:25 UTC
Reported by Robert Kuska:
https://kojipkgs.fedoraproject.org//work/tasks/3658/11793658/build.log

Seems like this is a problem:
- ERROR:  AttributeError: 'module' object has no attribute 'attribute_error'
+ ERROR:  AttributeError: module 'plpy' has no attribute 'attribute_error'

Comment 1 Tom Lane 2015-11-11 17:01:19 UTC
Sigh, did Python change the spelling of that error message?  We're going to need a new variant expected-file to deal with it, if so.

Comment 2 Pavel Raiskup 2015-11-11 17:12:23 UTC
I haven't had enough time to look at this yet, but supposedly yes --
probably starting from Python 3.5.  I'll check the details tomorrow.

Comment 3 Tom Lane 2015-11-11 18:54:04 UTC
Per upstream discussion, this was already dealt with in the Postgres 9.5 branch.  I'm not sure why the fix was not back-patched at the time, but until it gets into 9.4.x you could probably apply a version of this patch:

http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=f16d52269a196f7f303abe3b978d95ade265f05f

Comment 4 Robert Kuska 2015-11-12 09:15:06 UTC
FYI Python3.5 is currently still located in side-tag of Rawhide - f24-python3. We are waiting for postgresql to merge tags. Please use `fedpkg build --target f24-python3` to build patched postgresql with python3.5. Thank you!

Comment 5 Pavel Raiskup 2015-11-12 10:59:14 UTC
Thanks, I used the upstream fix [1] and built as [2].

[1] http://pkgs.fedoraproject.org/cgit/postgresql.git/commit/?id=c7e64e17fcbbbb1fe8
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=11801838


Note You need to log in before you can comment on or make changes to this bug.