miyuchina / mistletoe

A fast, extensible and spec-compliant Markdown parser in pure Python.
MIT License
831 stars 119 forks source link

Add `parameterized` to `requirements.txt` (or to `test-requirements.txt`) #221

Closed Ancieg closed 3 months ago

Ancieg commented 3 months ago

When I run python3 -m unittest (after installing dependencies listed in requirements.txt), I encounter the following errors:

======================================================================
ERROR: test.test_block_token (unittest.loader._FailedTest.test.test_block_token)
----------------------------------------------------------------------
ImportError: Failed to import test module: test.test_block_token
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 394, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 337, in _get_module_from_name
    __import__(name)
  File "/usr/src/RPM/BUILD/python3-module-mistletoe-1.4.0/test/test_block_token.py", line 4, in <module>
    from parameterized import parameterized
ModuleNotFoundError: No module named 'parameterized'

======================================================================
ERROR: test.test_contrib.test_pygments_renderer (unittest.loader._FailedTest.test.test_contrib.test_pygments_renderer)
----------------------------------------------------------------------
ImportError: Failed to import test module: test.test_contrib.test_pygments_renderer
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 394, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 337, in _get_module_from_name
    __import__(name)
  File "/usr/src/RPM/BUILD/python3-module-mistletoe-1.4.0/test/test_contrib/test_pygments_renderer.py", line 5, in <module>
    from parameterized import parameterized
ModuleNotFoundError: No module named 'parameterized'

======================================================================
ERROR: test.test_html_renderer (unittest.loader._FailedTest.test.test_html_renderer)
----------------------------------------------------------------------
ImportError: Failed to import test module: test.test_html_renderer
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 394, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 337, in _get_module_from_name
    __import__(name)
  File "/usr/src/RPM/BUILD/python3-module-mistletoe-1.4.0/test/test_html_renderer.py", line 4, in <module>
    from parameterized import parameterized
ModuleNotFoundError: No module named 'parameterized'

======================================================================
ERROR: test.test_latex_renderer (unittest.loader._FailedTest.test.test_latex_renderer)
----------------------------------------------------------------------
ImportError: Failed to import test module: test.test_latex_renderer
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 394, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 337, in _get_module_from_name
    __import__(name)
  File "/usr/src/RPM/BUILD/python3-module-mistletoe-1.4.0/test/test_latex_renderer.py", line 2, in <module>
    from parameterized import parameterized
ModuleNotFoundError: No module named 'parameterized'

----------------------------------------------------------------------
Ran 199 tests in 0.035s

FAILED (errors=4)

I think that is a good idea to add parameterized to requirements.txt (or to test-requirements.txt).