From: Michał G. <mgo...@us...> - 2023-05-10 02:53:31
|
--- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Wed May 10, 2023 02:53 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-10 07:26:52
|
Thank you for reporting this issue. It is a "false alarm", the different output should not trigger a test failure. How do you start the test with PyPy3? Does the same error show if you run "docutils/test/alltests.py" with Python 3.9.16? --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Wed May 10, 2023 02:53 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2023-05-10 15:45:21
|
> It is a "false alarm", the different output should not trigger a test failure. Indeed. I'm not sure if the different output from PyPy3 is actually intentional but I don't think it should cause a test failure anyway. > How do you start the test with PyPy3? (using docutils-0.20 unpacked from sdist) ``` pypy3 -m venv .venvpypy . .venvpypy/bin/activate pip install . python test/alltests.py ``` > Does the same error show if you run "docutils/test/alltests.py" with Python 3.9.16? No. All tests pass then. I think the `PosixPath(…)` part of exception is PyPy-specific: ``` $ python3.9 -c 'from pathlib import Path; Path("foo").read_text()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python3.9/pathlib.py", line 1266, in read_text with self.open(mode='r', encoding=encoding, errors=errors) as f: File "/usr/lib/python3.9/pathlib.py", line 1252, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/usr/lib/python3.9/pathlib.py", line 1120, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: 'foo' $ pypy3.9 -c 'from pathlib import Path; Path("foo").read_text()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/pypy3.9/pathlib.py", line 1266, in read_text with self.open(mode='r', encoding=encoding, errors=errors) as f: File "/usr/lib/pypy3.9/pathlib.py", line 1252, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/usr/lib/pypy3.9/pathlib.py", line 1120, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: PosixPath('foo') ``` --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Wed May 10, 2023 07:26 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-10 19:49:22
|
Thank you for the context info. We could make the expected output more specific, e.g. ~~~ index 91c116b7e..fb743591f 100755 --- a/docutils/test/test_writers/test_latex2e.py +++ b/docutils/test/test_writers/test_latex2e.py @@ -24,7 +24,10 @@ DATA_ROOT = Path(__file__).resolve().parents[1] / 'data' spam = os.path.relpath(DATA_ROOT/'spam').replace('\\', '/') ham = os.path.relpath(DATA_ROOT/'ham.tex').replace('\\', '/') - +if False: # replace with something True when running under pypy + spampath = f"PosixPath('{spam})" +else: + spampath = f"'{spam}.sty'" class WriterPublishTestCase(unittest.TestCase): @@ -1227,10 +1230,11 @@ def test_bibtex(self): samples_stylesheet_embed['two-styles'] = [ ["""two stylesheets embedded in the header""", head_template.substitute(dict(parts, -stylesheet=r"""% Cannot embed stylesheet: -% [Errno 2] No such file or directory: '""" + spam + r""".sty' -% embedded stylesheet: """ + ham + r""" -\newcommand{\ham}{wonderful ham} +stylesheet=f"""\ +% Cannot embed stylesheet: +% [Errno 2] No such file or directory: {spampath} +% embedded stylesheet: {ham} +\\newcommand{{\\ham}}{{wonderful ham}} """)) + r""" two stylesheets embedded in the header ~~~ Do you know of a sensible statement to use as `something-only-true-when-running-under-pypy`? --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Wed May 10, 2023 03:45 PM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2023-05-11 04:12:34
|
Yes. The easy way is: ``` hasattr(sys, "pypy_version_info") ``` The more elaborate way is: ``` sys.implementation.name == "pypy" ``` --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Wed May 10, 2023 07:49 PM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2023-05-11 04:19:18
|
Hmm, from a quick glance it's fixed in PyPy3.10 already, so you'd also want a: ``` … and sys.version_info < (3, 10) ``` --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 04:12 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-11 07:51:57
|
Could you test the attached patch? Attachments: - [test_latex2e.patch](https://sourceforge.net/p/docutils/bugs/_discuss/thread/72203378f4/6625/attachment/test_latex2e.patch) (1.5 kB; text/x-patch) --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 04:19 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2023-05-11 08:11:18
|
``` - % [Errno 2] No such file or directory: PosixPath('test/data/spam.sty') ? ----- + % [Errno 2] No such file or directory: PosixPath('test/data/spam) ``` I think you've missed `.sty'` there. --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 07:51 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-11 10:27:26
|
Indeed. Fixed in new patch. Attachments: - [test_latex2e_2.patch](https://sourceforge.net/p/docutils/bugs/_discuss/thread/72203378f4/ab7a/attachment/test_latex2e_2.patch) (1.5 kB; text/x-patch) --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 08:11 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2023-05-11 15:49:55
|
This one seems to work. Thanks. Are you planning to make a new release with the fix or should I add the patch to Gentoo? --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 10:27 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-11 15:56:31
|
- **status**: open --> open-fixed - **Comment**: Fixed in [r9384 ]. We plan a fixup release 0.20.1 next Tuesday. Thanks for reporting and testing. --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** open-fixed **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 03:49 PM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Günter M. <mi...@us...> - 2023-05-17 06:11:13
|
- **status**: open-fixed --> closed-fixed - **Comment**: Fixed in [Docutils 0.20.1](https://pypi.org/project/docutils/0.20.1). Thank you for reporting. --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** closed-fixed **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Thu May 11, 2023 03:56 PM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: Michał G. <mgo...@us...> - 2023-05-17 06:32:41
|
Thanks. I can confirm that this version works for us. --- **[bugs:#471] 0.20 fails tests on pypy3** **Status:** closed-fixed **Created:** Wed May 10, 2023 02:53 AM UTC by Michał Górny **Last Updated:** Wed May 17, 2023 06:11 AM UTC **Owner:** nobody When running the test suite of the 0.20 release on PyPy3, I get the following test failure: ``` Testing Docutils 0.20 with Python 3.9.16 on 2023-05-10 at 04:44:04 OS: Linux 6.2.14-gentoo-dist #1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 (linux, Linux-6.2.14-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37) Working directory: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test Docutils package: /tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/docutils .....................................................................s................................................................................................................................................................................................................s..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E............................................. ====================================================================== FAIL: test_embed_embed_stylesheet (test_writers.test_latex2e.WriterPublishTestCase) (id="samples_embed_stylesheet['two-styles'][0]") ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/portage/dev-python/docutils-0.20/work/docutils-0.20/test/test_writers/test_latex2e.py", line 151, in test_embed_embed_stylesheet self.assertEqual(output, expected) AssertionError: "\\do[452 chars]ory: PosixPath('data/spam.sty')\n% embedded st[439 chars]t}\n" != "\\do[452 chars]ory: 'data/spam.sty'\n% embedded stylesheet: d[428 chars]t}\n" \documentclass[a4paper]{article} % generated by Docutils <https://docutils.sourceforge.io/> \usepackage{cmap} % fix search and cut-and-paste in Acrobat \usepackage{ifthen} \usepackage[T1]{fontenc} %%% Custom LaTeX preamble % PDF Standard Fonts \usepackage{mathptmx} % Times \usepackage[scaled=.90]{helvet} \usepackage{courier} %%% User specified packages and stylesheets % Cannot embed stylesheet: - % [Errno 2] No such file or directory: PosixPath('data/spam.sty') ? ---------- - + % [Errno 2] No such file or directory: 'data/spam.sty' % embedded stylesheet: data/ham.tex \newcommand{\ham}{wonderful ham} %%% Fallback definitions for Docutils-specific commands % hyperlinks: \ifthenelse{\isundefined{\hypersetup}}{ \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage{bookmark} \urlstyle{same} % normal text font (alternatives: tt, rm, sf) }{} %%% Body \begin{document} two stylesheets embedded in the header \end{document} ---------------------------------------------------------------------- Ran 1636 tests in 14.868s FAILED (failures=1, skipped=2) Elapsed time: 15.745 seconds ``` --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |