[Bug 5335] New: Unexpected behaviour while using --with-python3
bugzilla at mercurial-scm.org
bugzilla at mercurial-scm.org
Fri Aug 19 06:16:34 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5335
Bug ID: 5335
Summary: Unexpected behaviour while using --with-python3
Product: Mercurial
Version: 3.9-rc
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: 7895pulkit at gmail.com
CC: mercurial-devel at selenic.com
I noticed this fixing the raise statement in mercurial/bundle2.py. The commit
which got pushed can be seen here https://www.selenic.com/hg/rev/e584c6235500.
There is test-bundle2-format.t which will fail we haven't raised the exception
correctly.
Now if we intentionally try to fail the test on python 3 by changing the lines
of code in python 3 if block, what I tried was replacing with `raise abc`, and
run the test on python 3, the test passes, which should not.
If we try changing the statement in py2 else block and change it to something
like `raise abc`, and then run the test on python 3, we should expect the test
to pass, as we are not using python 2, but the test fails.
What seems is like even using --with-python3 the tests are running on python 2
only. Maybe something is missing in implementation.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list