Bug 2294378

Summary: pygrib: FTBFS in Fedora Rawhide: __main__.test fails
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: pygribAssignee: Jos de Kloe <josdekloe>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: josdekloe
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/pygrib
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-27 06:26:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260875, 2244836    

Description Karolina Surma 2024-06-26 08:31:26 UTC
Description of problem:
Package pygrib fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
2.1.5-3.fc40

Steps to Reproduce:
koji build --scratch f41 pygrib-2.1.5-3.fc40.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/pygrib

Reproducible: Always

Actual Results:  
File "/builddir/build/BUILD/pygrib-2.1.5-build/pygrib-2.1.5-tmp-test/test/test.py", line 237, in __main__.test
Failed example:
    for grb in grbs: print(grb)
Expected:
    1:Total precipitation:kg m-2 (accum):lambert:surface:level 0:fcst time 15-30 mins (accum):from 201804100000
Got:
    1:Total precipitation:kg m-2 (accum):lambert:surface:level 0:fcst time 15m-30m mins (accum):from 201804100000
Trying:
    str(grb.packingType)
Expecting:
    'grid_simple'
ok
Trying:
    grbs.close()
Expecting nothing
ok
1 item had no tests:
    __main__
**********************************************************************
1 item had failures:
   1 of 110 in __main__.test

Comment 1 Jos de Kloe 2024-06-27 06:26:36 UTC
This bugreport crossed the update that I applied yesterday. This issue is solved now in rawhide.