Bug 1280404

Summary: PostgreSQL testsuite expects different python traceback format
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: postgresqlAssignee: Pavel Raiskup <praiskup>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: devrim, hhorak, jmlich83, jstanek, pbrobinson, pkajaba, praiskup, rkuska, tgl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-12 10:59:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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