From e6d4ee24b88b312b4becd0b4f5c2fd4df0763940e83293682ae515c6f0a90309 Mon Sep 17 00:00:00 2001 From: Emily Roberts Date: Fri, 29 Dec 2023 04:12:25 +0000 Subject: [PATCH] Accepting request 1134190 from home:bmwiedemann:branches:Education Do not write non-deterministic .pyc files in tests OBS-URL: https://build.opensuse.org/request/show/1134190 OBS-URL: https://build.opensuse.org/package/show/Education/epy?expand=0&rev=18 --- epy.changes | 5 +++++ epy.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/epy.changes b/epy.changes index a48f947..7a3ddcf 100644 --- a/epy.changes +++ b/epy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 20 11:43:07 UTC 2023 - Bernhard Wiedemann + +- Do not write non-deterministic .pyc files in tests + ------------------------------------------------------------------- Sat Mar 04 13:16:37 UTC 2023 - mcepl@cepl.eu diff --git a/epy.spec b/epy.spec index f094564..680ddc7 100644 --- a/epy.spec +++ b/epy.spec @@ -75,6 +75,7 @@ python3 -mpip install --root %{buildroot} --no-warn-script-location \ build/epy_reader-*-py3-none-any.whl %check +export PYTHONDONTWRITEBYTECODE=1 export PYTHONPATH=%{buildroot}/%{python3_sitelib} pytest -v tests