Miro Hrončok
5ffff08833
Do not skip a flag without -O, if the flag is checked explicitly
2024-09-11 22:27:17 +02:00
Miro Hrončok
1ad7f0cc25
Skip Python 2.7 tests on rawhide
2024-09-11 20:29:46 +02:00
Miro Hrončok
a0a96e2721
Add --timeout to selftest/parallel.sh
2024-09-11 19:57:24 +02:00
Miro Hrončok
800608da2e
Allow to check explicit flags in assertflags.py
2024-08-01 15:00:27 +02:00
Miro Hrončok
b8d9e52c94
Update the list of self-tested Pythons
...
python3.7 was retired in f40+
python3.5 is retired everywhere
I intentionally kept python3.4 so we have at least one test that is skipped.
2024-04-04 21:36:34 +02:00
Miro Hrončok
6f4fdf29c4
Allow testing virtualenv with --download
2024-04-04 17:50:39 +02:00
Miro Hrončok
548de9fc09
Run the CI tests of this repo with pypy3.9 instead of retired pypy3.8
2023-04-28 16:32:49 +02:00
Miro Hrončok
3ff6bdd8ba
Don't execute setup.py directly, always use pip
...
Since Python 3.12, virtual environments don't have setuptools,
instead, pip will install it to an isolated build environment.
2023-04-28 13:28:29 +02:00
Tomáš Hrnčiar
b9eebf1c79
Enable Cython test for Python 3.12, using the git master
2023-02-10 07:10:29 +01:00
Lukas Zachar
dc4e662e56
parallel might run test_dtrace
...
Which obviously needs dtrace to be installed.
Added recommend as it is better to fail the test not whole plan if it is not possible to
install systemtap-sdt-devel by its /usr/bin/dtrace provide
2023-02-09 10:14:06 +01:00
Lukas Zachar
6be8056917
smoke/venv needs gcc
...
Which is not installed by default
2023-01-31 08:21:34 +01:00
Lukas Zachar
9a18358399
Extend duration of selftest/parallel
...
E.g. component python3.11 (from C9S) runs whole test suite which can't
finish within the default value of 5 minutes.
2023-01-27 13:22:52 +01:00
Lukas Zachar
6f4c0d0815
Make tmt lint pass for /smoke/venv
2023-01-17 20:33:40 +01:00
Lukas Zachar
f022884999
Convert selftest into tmt
2023-01-17 20:33:40 +01:00
Lumir Balhar
b9dc63ad15
Do not use Cython from master branch for Py 3.11
2023-01-10 13:37:41 +01:00
Miro Hrončok
51c24d51d1
dnf install cannot be run as non-root
2022-11-26 22:42:49 +01:00
Miro Hrončok
4c3ed6ec49
Try installing the devel package when INSTALL_OR_SKIP is set
2022-11-25 15:52:43 +01:00
Miro Hrončok
df6c0cef6e
Don't set SETUPTOOLS_USE_DISTUTILS=stdlib when distutils does not exist
...
Python 3.12.0a2 removed the standard library distutils module,
so we can no longer use it.
2022-11-16 00:45:37 +01:00
Miro Hrončok
18de9ca2b3
Run tests as regular user
...
For this to work, we run the smoke test from a temporary directory,
on the CI /var/str/smoke is not writable by non-root.
2022-06-09 12:46:18 +02:00
Tomáš Hrnčiar
fd113d4cf8
Add gcc-c++ dependency to run Python 3.11 test
2022-05-09 12:27:26 +02:00
Karolina Surma
db335e1e44
Explicitly declare the usage of distutils from Python stdlib for tests
...
setuptools 60+ bundles distutils which then have an impact on the test
environment, causing test_with_pip to fail.
2022-03-16 17:52:34 +01:00
Miro Hrončok
19a49e8637
Drop no longer relevant conditionals for Python 2.6
2022-03-08 01:07:00 +01:00
Miro Hrončok
362f438cc6
Instead of checking for Jython, make it possible to opt-out from the Cython test
...
- we don't have Jython any more and even if we had, we could explicitly opt out from it
- we sometimes need to opt out from Cython test in the development versions of Python
2022-03-08 01:05:03 +01:00
Miro Hrončok
bc948d6e50
Fixup the pypy3 test example
2022-03-08 01:03:37 +01:00
Miro Hrončok
c2466c2de5
Undo Python 3.11 py workarounds, py 1.11.0 is out with the fix
2021-11-04 18:26:12 +01:00
Miro Hrončok
beb705f0d0
Enable Cython test for Python 3.11, using the git master
2021-10-29 16:47:42 +02:00
Miro Hrončok
1adc399e3d
Add Python 3.11 workarounds
2021-10-12 12:10:15 +02:00
Miro Hrončok
2fc6fc00bc
Make python3.5 optional
2021-08-10 15:23:00 +02:00
Miro Hrončok
853a1f50a3
Correctly determine toxenv for versioned PyPy
2021-08-10 14:55:20 +02:00
Tomas Hrnciar
98ad8d0232
For debug build, assert -O0 instead of -Og
...
Python change: https://src.fedoraproject.org/rpms/python3.9/c/1d2d05b30506c5758da94f1cd3860f3d58a87db0
Rationale: https://bugzilla.redhat.com/show_bug.cgi?id=1818857
2021-05-05 10:52:42 +02:00
Miro Hrončok
1b6575d5a5
Avoid variable names with negative conotations
2020-11-05 13:32:26 +01:00
Miro Hrončok
59f2079f68
Support INSTALL_OR_SKIP for marshalparser test
2020-10-13 22:09:11 +02:00
Miro Hrončok
6cc91d52a7
No longer install Cython from master on Python 3.9
...
It also is not (yet) necessary on Python 3.10.
2020-10-12 11:18:00 +02:00
Lumir Balhar
86842acd1b
Add marshalparser to Python tests
...
Marshalparser helps us to uniform byte-compiled Python files
so it has to be able to also parse pyc files from
the main python packages.
Moreover, it has its own database of magic numbers so this test
checks that the parser is compatible with the latest python before
we ship it.
2020-07-30 07:50:39 +02:00
Lumir Balhar
b4fd40e6ca
Test virtualenv with pip for Py 2.7 (bundled wheels in ensurepip) and Py 3.9
2020-06-23 20:38:51 +02:00
Lumir Balhar
261dfe65e1
Add method for virtualenv with --seeder pip
...
--seeder pip uses pip (from wheel) to install seed packages (pip, setuptools
and wheel) from our own system wheels.
2020-06-23 13:35:27 +02:00
Miro Hrončok
c26b64823b
Make it possible to run Python 3.4 tests optionally
2020-06-05 11:42:43 +02:00
Miro Hrončok
0ec11f1f64
Require Python packages with dots
2020-06-03 15:59:47 +02:00
Miro Hrončok
450364614f
Also test plain ensurepip in smoke tests
2020-04-29 01:17:58 +02:00
Miro Hrončok
6a9ffe6cb2
Have a dynamic Python version by default if possible
2020-04-20 15:32:38 +02:00
Miro Hrončok
562c77a483
Smoke test self without Python 3.4
...
Python 3.4 is going to be removed in Fedora 33:
https://fedoraproject.org/wiki/Changes/RetirePython34
2020-02-12 15:14:50 +00:00
Miro Hrončok
38d9a441ce
Test with Python 3.9 as well
2020-02-07 18:39:54 +01:00
Miro Hrončok
74239cac5d
Assert that tox uses the appropriate Python version
2020-02-07 18:39:54 +01:00
Miro Hrončok
606e77a1ba
Expand the OPENSSL_CONF=/non-existing-file comment
...
It's not just the minimum version now.
2019-12-02 18:24:15 +01:00
Miro Hrončok
754dc5a573
Python 3.9: Fetch Cython master
2019-11-26 01:10:14 +01:00
Miro Hrončok
96fbcc5c42
Test that the debug build has the proper -O flags set
...
Fixes https://src.fedoraproject.org/tests/python/issue/12
2019-10-21 15:17:34 +02:00
Miro Hrončok
11b7e874ef
Test pypy3 tests with current pypy3, that is Python 3.6
2019-09-05 15:07:00 +02:00
Miro Hrončok
30e8067df5
Test debug tests with current rawhide python3-debug
2019-09-05 15:07:00 +02:00
Miro Hrončok
d37bcbfd9a
Also enable testing virtualenv --no-download
2019-09-05 15:07:00 +02:00
Miro Hrončok
d72c62fe79
It is no longer needed to fetch Cython from git master
2019-09-02 15:50:46 +02:00