The attached patch does not work for two reasons. One, very boring, is that there is more code that sets PYTHONPATH in translate/storage/test_mo.py. The other reason, sadly, is that even once that's gone the tests still fail like this:
_____________________________________________________________________________________________ test_po_to_xliff _____________________________________________________________________________________________ @pytest.mark.skipif('TTKIT_SKIP_COMMANDS' in os.environ, reason='Skip testing command line tools') def test_po_to_xliff(): OUTPUT = 'af-pootle.xlf' > assert call(['po2xliff', 'af-pootle.po', OUTPUT]) == 0 E assert 1 == 0 E + where 1 = call(['po2xliff', 'af-pootle.po', 'af-pootle.xlf']) test_xliff_conformance.py:64: AssertionError ------------------------------------------------------------------------------------------- Captured stderr call ------------------------------------------------------------------------------------------- Traceback (most recent call last): File "/build/translate-toolkit-ZSDMoF/translate-toolkit-2.0.0/debian/python3-translate/usr/bin/po2xliff", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3037, in <module> @_call_aside File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3021, in _call_aside f(*args, **kwargs) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3050, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 655, in _build_master ws.require(__requires__) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 969, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 855, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'translate-toolkit==2.0.0' distribution was not found and is required by the application This is not so surprising when you think about it, translate-toolkit for the default version of Python 3 is not in any sense installed so how could pkg_resources find it? Short of going in to bat with upstream for PYTHON35PATH, PYTHON36PATH environment variables I don't think there's much that can be done. There is already a debian patch to add an environment variable to allow skipping the CLI tools (TTKIT_SKIP_COMMANDS), I guess it should be set when testing non-default versions of Python 3? Cheers, mwh
_______________________________________________ Debian-l10n-devel mailing list Debian-l10n-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-l10n-devel