aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* reformat with black 24Arthur Zamarin2024-01-263-15/+20
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Reformat with black 23.1.0Arthur Zamarin2023-03-2416-33/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fileutils: small cleanup and modernizationArthur Zamarin2022-12-312-10/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix TestArComp::test_missing_tar when gtar is installedArthur Zamarin2022-12-251-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove osutils.native_readdir.listdirArthur Zamarin2022-12-251-7/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Reformat w/ black 22.12.0 for consistency.Brian Harring2022-12-2533-1307/+1567
| | | | | Signed-off-by: Brian Harring <ferringb@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Add constraint satisfaction problem solverArthur Zamarin2022-12-091-0/+62
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression: add parallel xz supportSam James2022-10-104-73/+142
| | | | | | Closes: https://github.com/pkgcore/snakeoil/issues/83 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression.__init__: add testsArthur Zamarin2022-10-103-9/+100
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression/_bzip2: add testsArthur Zamarin2022-10-102-0/+141
| | | | | | | Add tests for all modes used by compression._bzip2 to compress and decompress data. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* move `DemandLoadTargets` to testsArthur Zamarin2022-09-261-3/+29
| | | | | | | Used only in tests, which test `mixins.PythonNamespaceWalker`, meaning I can't just remove it. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* descriptors: remove unused `classproperty`Arthur Zamarin2022-09-251-16/+0
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fileutils: remove deprecated `write_file`Arthur Zamarin2022-09-242-24/+17
| | | | | | | | Last usage was removed, so we can remove the function as well. In most cases, like tests, you can use `Path.write_text` or `Path.write_bytes` instead. If not in tests, just use `open` and `write`. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* test/mixins: remove `mk_named_tempfile`Arthur Zamarin2022-09-241-51/+34
| | | | | | | Last usage was removed, so we can remove the function as well. For tests just use normal `tmp_path / [filename]` instead. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Revert "dist.distutils_extensions: fix _verinfo.py file"Arthur Zamarin2022-09-191-43/+33
| | | | | Revert: b4658d2ebfe9d929ba9cc93e84a93c0ac2d399c7 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* version: refactor the codeArthur Zamarin2022-09-181-33/+43
| | | | | | | | - make it to use standard ISO 8601 dates - use namedtuple for easier usage of this type - use datetime objects for better handling of dates Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove mk_cpy_loadable_testcaseArthur Zamarin2022-08-241-6/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove mentions of _readdir C extensionArthur Zamarin2022-08-241-38/+13
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove cython _posix.pyxArthur Zamarin2022-08-241-48/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove cython _sequences.pyxArthur Zamarin2022-08-241-19/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* data_source: modernize testsArthur Zamarin2022-08-241-43/+31
| | | | | | | | - use `with` semantics for file-handlers usage - use Path for `self.dir` - use b'' for bytes-literals Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* stringio: remove text_writable & bytes_writableArthur Zamarin2022-08-241-26/+2
| | | | | | | | | Was already marked for deprecation, but not yet removed. Use instead io.StringIO and io.BytesIO. Also use metaclass for _make_ro_cls. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* test_obj.py: (py3.11) add __getstate__ to knowledgeArthur Zamarin2022-08-081-4/+4
| | | | | | | In python 3.11, the function `object.__getstate__()` was added, so we should add it to the ignore list. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tests: mark Namespace tests as XFAIL on PyPyArthur Zamarin2022-07-301-0/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tests: skip failing SplitExec tests on github CIArthur Zamarin2022-07-301-0/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* osutils: simplify sizeof_fmt() and fix handling sizes > 1000 YBMichał Górny2022-06-131-3/+2
|
* osutils: add tests for sizeof_fmt()Michał Górny2022-06-131-1/+24
|
* tests: remove RandomPath fixtureArthur Zamarin2022-05-191-23/+27
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tests: remove TempDir fixtureArthur Zamarin2022-05-196-256/+252
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* PyPy supportArusekk2021-12-143-1/+7
|
* sequences: drop namedtuple supportTim Harder2021-03-281-39/+2
| | | | | It's not worth maintaining our own implementation anymore since we don't use it.
* sort imports with isortTim Harder2021-03-2826-46/+20
|
* osutils: drop old, unused FsLock related supportTim Harder2021-03-221-90/+0
|
* tests: ignore bind mount failure for priv limited docker wheel buildsTim Harder2021-03-201-2/+2
|
* caching: drop refs to removed cpy extensionTim Harder2021-03-151-173/+155
|
* cli.arghparse: drop overly fragile CopyableParserTim Harder2021-03-151-139/+0
| | | | | This is breaking with python-3.10 and really copyable support should be added upstream if it's wanted/needed.
* weakrefs: drop old WeakValCache supportTim Harder2021-03-151-73/+0
|
* process: drop unused is_running()Tim Harder2021-03-151-40/+0
|
* mappings: OrderedFrozenSet: support slice notationTim Harder2021-03-091-0/+1
|
* tests: move to main repo root dirTim Harder2021-03-0433-0/+0
|
* version: don't display missing extended version messageTim Harder2021-03-031-12/+8
| | | | For released versions.
* tests: various caching_iter test updatesTim Harder2021-02-181-20/+14
|
* formatters: rename TerminfoHatesOurTerminal to TerminfoUnsupportedTim Harder2021-01-311-2/+2
|
* formatters: drop 'native' prefixes and simplify parent __init__() callsTim Harder2021-01-311-13/+2
|
* mappings: fix OrderedFrozenSet __getitem__()Tim Harder2020-12-291-1/+1
|
* mappings: add initial, simple indexing support for OrderedFrozenSetTim Harder2020-12-291-0/+7
| | | | | Since it's ordered, it inherently can support indexing unlike regular, unordered sets.
* mappings: support reversed() for ImmutableDict and OrderedFrozenSetTim Harder2020-12-171-1/+3
|
* mappings: add initial OrderedFrozenSet implementationTim Harder2020-12-151-9/+54
| | | | Which is an immutable OrderedSet.
* klass: drop 'native' prefixesTim Harder2020-12-141-62/+10
| | | | | While C extensions might return at some point, we're not going duplicate effort anymore by having both cpy and native implementations.
* OrderedSet: implement __repr__()Tim Harder2020-12-131-0/+1
|