Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mypy for openSUSE:Factory checked in at 2023-02-14 16:47:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mypy (Old) and /work/SRC/openSUSE:Factory/.mypy.new.27156 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mypy" Tue Feb 14 16:47:21 2023 rev:34 rq:1065667 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mypy/mypy.changes 2023-02-08 17:20:28.053994527 +0100 +++ /work/SRC/openSUSE:Factory/.mypy.new.27156/mypy.changes 2023-02-14 16:48:00.407358214 +0100 @@ -1,0 +2,6 @@ +Tue Feb 14 06:02:49 UTC 2023 - Matej Cepl <mc...@suse.com> + +- Don't skipp the test, add testI64Cast-fix.patch to make it + working (gh#python/mypy#14691). + +------------------------------------------------------------------- New: ---- testI64Cast-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mypy.spec ++++++ --- /var/tmp/diff_new_pack.ek9JRb/_old 2023-02-14 16:48:00.999361709 +0100 +++ /var/tmp/diff_new_pack.ek9JRb/_new 2023-02-14 16:48:01.007361757 +0100 @@ -36,6 +36,9 @@ # License Source3: Apache-2.0. Only for the test suite, not packaged here. Source3: https://files.pythonhosted.org/packages/source/t/types-setuptools/types-setuptools-%{types_setuptools_version}.tar.gz Source99: mypy-rpmlintrc +# PATCH-FIX-UPSTREAM testI64Cast-fix.patch gh#python/mypy#14633 mc...@suse.com +# Add test data for 32bit +Patch0: testI64Cast-fix.patch BuildRequires: %{python_module mypy_extensions >= 0.4.3} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11} @@ -132,8 +135,6 @@ if [ $(getconf LONG_BIT) -ne 64 ]; then # gh#python/mypy#11148 donttest+=" or testSubclassSpecialize or testMultiModuleSpecialize" - # gh#python/mypy#14633 - donttest+=" or testI64Cast" # fails only in python36 (EOL) python36_donttest+=" or testIntOps" fi ++++++ testI64Cast-fix.patch ++++++ >From 552d28f1b0529018c47afdf733ea2bc8bf8d90eb Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo <jukka.lehtos...@iki.fi> Date: Mon, 13 Feb 2023 17:18:41 +0000 Subject: [PATCH] [mypyc] Fix test case testI64Cast on 32-bit architectures Add 64-bit and 32-bit variants of the test. Fixes #14633. --- mypyc/test-data/irbuild-i64.test | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) --- a/mypyc/test-data/irbuild-i64.test +++ b/mypyc/test-data/irbuild-i64.test @@ -1731,7 +1731,7 @@ def f5(): L0: return 4 -[case testI64Cast] +[case testI64Cast_64bit] from typing import cast from mypy_extensions import i64 @@ -1772,6 +1772,39 @@ L2: L3: return r3 +[case testI64Cast_32bit] +from typing import cast +from mypy_extensions import i64 + +def cast_int(x: int) -> i64: + return cast(i64, x) +[out] +def cast_int(x): + x :: int + r0 :: native_int + r1 :: bit + r2, r3, r4 :: int64 + r5 :: ptr + r6 :: c_ptr + r7 :: int64 +L0: + r0 = x & 1 + r1 = r0 == 0 + if r1 goto L1 else goto L2 :: bool +L1: + r2 = extend signed x: builtins.int to int64 + r3 = r2 >> 1 + r4 = r3 + goto L3 +L2: + r5 = x ^ 1 + r6 = r5 + r7 = CPyLong_AsInt64(r6) + r4 = r7 + keep_alive x +L3: + return r4 + [case testI64ExplicitConversionFromVariousTypes] from mypy_extensions import i64