Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package micropython for openSUSE:Factory 
checked in at 2021-08-03 22:48:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/micropython (Old)
 and      /work/SRC/openSUSE:Factory/.micropython.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "micropython"

Tue Aug  3 22:48:38 2021 rev:2 rq:909831 version:1.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/micropython/micropython.changes  2021-07-28 
19:20:19.383613237 +0200
+++ /work/SRC/openSUSE:Factory/.micropython.new.1899/micropython.changes        
2021-08-03 22:48:52.460487207 +0200
@@ -1,0 +2,6 @@
+Mon Aug  2 15:11:39 UTC 2021 - Danilo Spinella <danilo.spine...@suse.com>
+
+- Add fix-uasyncio_heaplock-test.patchto fix uasyncio_heaplock
+  test (originally from gh#micropython/micropython#7449)
+
+-------------------------------------------------------------------

New:
----
  fix-uasyncio_heaplock-test.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ micropython.spec ++++++
--- /var/tmp/diff_new_pack.Zjm8cH/_old  2021-08-03 22:48:53.232486276 +0200
+++ /var/tmp/diff_new_pack.Zjm8cH/_new  2021-08-03 22:48:53.236486271 +0200
@@ -24,6 +24,9 @@
 Group:          Development/Languages/Python
 URL:            https://micropython.org/
 Source:         
https://micropython.org/resources/source/%{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM fix-uasyncio_heaplock-test.patch 
gh#micropython/micropython#7449 mc...@suse.com
+# Make uasyncio_heaplock test more deterministic.
+Patch0:         fix-uasyncio_heaplock-test.patch
 BuildRequires:  openssl
 BuildRequires:  python3
 BuildRequires:  readline-devel
@@ -35,7 +38,8 @@
 A lean and efficient Python implementation for microcontrollers and 
constrained systems
 
 %prep
-%setup -q
+%autosetup -p1
+
 sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" 
"ports/unix/main.c"
 
 %define make_flags V=1 MICROPY_PY_BTREE=0 MICROPY_PY_USSL=0

++++++ fix-uasyncio_heaplock-test.patch ++++++
>From 180c54d6cc4e744082f7f76f484646db47d25adb Mon Sep 17 00:00:00 2001
From: Damien George <dam...@micropython.org>
Date: Fri, 25 Jun 2021 11:09:31 +1000
Subject: [PATCH] tests/extmod: Make uasyncio_heaplock test more deterministic.

This helps the test pass on systems with an inaccurate sleep time.

Signed-off-by: Damien George <dam...@micropython.org>
---
 tests/extmod/uasyncio_heaplock.py     | 6 +++---
 tests/extmod/uasyncio_heaplock.py.exp | 2 --
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/tests/extmod/uasyncio_heaplock.py 
b/tests/extmod/uasyncio_heaplock.py
index 771d3f0d97a..3a92d36c9f5 100644
--- a/tests/extmod/uasyncio_heaplock.py
+++ b/tests/extmod/uasyncio_heaplock.py
@@ -29,15 +29,15 @@ async def task(id, n, t):
 
 
 async def main():
-    t1 = asyncio.create_task(task(1, 4, 10))
-    t2 = asyncio.create_task(task(2, 4, 25))
+    t1 = asyncio.create_task(task(1, 4, 20))
+    t2 = asyncio.create_task(task(2, 2, 50))
 
     micropython.heap_lock()
 
     print("start")
     await asyncio.sleep_ms(1)
     print("sleep")
-    await asyncio.sleep_ms(100)
+    await asyncio.sleep_ms(70)
     print("finish")
 
     micropython.heap_unlock()
diff --git a/tests/extmod/uasyncio_heaplock.py.exp 
b/tests/extmod/uasyncio_heaplock.py.exp
index a967cc31971..68c6366c6f1 100644
--- a/tests/extmod/uasyncio_heaplock.py.exp
+++ b/tests/extmod/uasyncio_heaplock.py.exp
@@ -6,6 +6,4 @@ sleep
 1 2
 2 1
 1 3
-2 2
-2 3
 finish

Reply via email to