This is an archive of the discontinued Mercurial Phabricator instance.

tests: accept slightly different zip file in Python 3
ClosedPublic

Authored by durin42 on Oct 13 2018, 7:57 AM.

Details

Summary

I added some unzip -t here and I *think* the only change is from
Python 3 having more data in the zip file headers or something. Sigh.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Oct 13 2018, 7:57 AM
pulkit accepted this revision.Oct 13 2018, 8:11 AM
This revision was automatically updated to reflect the committed changes.
yuja added a subscriber: yuja.Oct 13 2018, 10:09 AM
  • body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650

+ body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650 (no-py3k !)
+ body: size=1461, sha1=be6d3983aa13dfe930361b2569291cdedd02b537 (py3k !)

For some reason, my Python 3 says
size=1489, sha1=1897e496871aa89ad685a92b936f5fa0d008b9e8

In D5075#76117, @yuja wrote:
  • body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650

+ body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650 (no-py3k !)
+ body: size=1461, sha1=be6d3983aa13dfe930361b2569291cdedd02b537 (py3k !)

For some reason, my Python 3 says
size=1489, sha1=1897e496871aa89ad685a92b936f5fa0d008b9e8

I suspect it's because we have different versions on Python 3.

In D5075#76125, @pulkit wrote:
In D5075#76117, @yuja wrote:
  • body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650

+ body: size=1377, sha1=677b14d3d048778d5eb5552c14a67e6192068650 (no-py3k !)
+ body: size=1461, sha1=be6d3983aa13dfe930361b2569291cdedd02b537 (py3k !)

For some reason, my Python 3 says
size=1489, sha1=1897e496871aa89ad685a92b936f5fa0d008b9e8

I suspect it's because we have different versions on Python 3.

Ugh. Should we just glob the size and sha1 then? I'm a little hesitant to do that, but I don't see many other paths forward...

Behavior changed between Python 3.6 and Python 3.7.

We should add pyXX hghave capabilities to differentiate on Python versions. Or we could annotate all possible lines with (?) (optional output). The hghave approach is better.