1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-04-26 19:28:48 +03:00

8 Commits

Author SHA1 Message Date
Nick Wellnhofer
8c2e8031b2 python: Fix tests on MinGW
Add the directories containing required DLLs with os.add_dll_directory
to make tests work on MinGW.
2023-09-05 17:00:41 +02:00
David Seifert
02c6ce836c
Use portable python shebangs
* In conda or Gentoo Prefix, we don't want to use the system python and
  instead rely on PATH lookup.
2022-04-05 11:45:23 +02:00
Nick Wellnhofer
b3076bccdb Finish and clean up Python 3 support
- Handle Python 3 types similar to libxml2
- Copy new versions of libxml_xmlXPathDestructNsNode and
  libxml_xmlXPathObjectPtrConvert from libxml2
- Fix compiler warnings
- Fix whitespace
- Remove unneeded imports from __future__
- Remove test in extelem.py (StringIO can't be converted to FILE under
  Python 3)
- string.lower() works in both Python 2 and 3

Closes #25.
2020-11-19 17:59:37 +01:00
Suleyman Poyraz
a2db8da1ac Initial support for Python 3
Squashed merge of pull request !19.
2020-11-19 17:08:37 +01:00
Nick Wellnhofer
47c8300023 Make sure that Python tests exit with error code 2019-10-21 12:52:41 +02:00
Daniel Veillard
0a04c030c7 enable libxml2 memory debug before loading libxslt since libxslt
* python/tests/*.py: enable libxml2 memory debug before
  loading libxslt since libxslt initialization now includes
  EXSLT registration which initialize the libxml2 library and
  allocate memory
Daniel
2002-11-24 14:51:51 +00:00
Daniel Veillard
645c2e421a patch from Charles Bozeman fixing a memory leak in
* libexslt/date.c: patch from Charles Bozeman fixing a memory
  leak in exsltDateDurationFunction pointed out by Bernard Brinkhus
* python/tests/exslt.py: trouble with mem debug in that specific
  test...
Daniel
2002-11-23 13:48:38 +00:00
Daniel Veillard
ccc8569012 make sure to register EXSLT for the bindings add a specific test minor
* python/libxslt.c: make sure to register EXSLT for the bindings
* python/tests/Makefile.am python/tests/exslt.py: add a specific test
* xsltproc/xsltproc.c: minor cleanup
Daniel
2002-11-16 22:26:08 +00:00