Repository: raimon49/pip-licenses (language: python)

Issue:
test_format_rst_without_filter fails with wcwidth>=0.2.10
With a modern version of wcwidth this test fail. Looks like docutils is not raising any error anymore.

```
______________________________________________ TestGetLicenses.test_format_rst_without_filter ______________________________________________

self = <test_piplicenses.TestGetLicenses testMethod=test_format_rst_without_filter>

    @unittest.skipIf(
        sys.version_info < (3, 6, 0),
        "To unsupport Python 3.5 in the near future",
    )
    def test_format_rst_without_filter(self) -> None:
        piplicenses.importlib_metadata.distributions = (
            importlib_metadata_distributions_mocked
        )
        format_rst_args = ["--format=rst"]
        args = self.parser.parse_args(format_rst_args)
        table = create_licenses_table(args)
    
        self.assertIn("l", table.align.values())
        self.assertTrue(table.border)
        self.assertTrue(table.header)
        self.assertEqual("+", table.junction_char)
        self.assertEqual(RULE_ALL, table.hrules)
>       with self.assertRaises(docutils.utils.SystemMessage):
E       AssertionError: SystemMessage not raised

test_piplicenses.py:579: AssertionError
```


Discussion / hints:
@danigm Thanks for the very detailed report.

I will attempt to delete the broken test case.

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1323708..0d5b8cf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 ## CHANGELOG
 
+### 4.3.4
+
+* Maintain to pass test with wcwidth>=0.2.10
+
 ### 4.3.3
 
 * Always terminate `--allow-only` and `--fail-on` messages with a newline
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 2b1f167..b74bbc7 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -76,7 +76,7 @@ platformdirs==2.6.0
     # via black
 pluggy==1.0.0
     # via pytest
-prettytable==3.5.0
+prettytable==3.9.0
     # via -r requirements.in
 py==1.11.0
     # via pytest-pycodestyle
@@ -128,7 +128,7 @@ urllib3==1.26.18
     # via
     #   requests
     #   twine
-wcwidth==0.2.5
+wcwidth==0.2.13
     # via prettytable
 webencodings==0.5.1
     # via bleach
diff --git a/piplicenses.py b/piplicenses.py
index bcf8644..b8def73 100644
--- a/piplicenses.py
+++ b/piplicenses.py
@@ -56,7 +56,7 @@
 open = open  # allow monkey patching
 
 __pkgname__ = "pip-licenses"
-__version__ = "4.3.3"
+__version__ = "4.3.4"
 __author__ = "raimon"
 __license__ = "MIT"
 __summary__ = (
diff --git a/requirements.txt b/requirements.txt
index dc74ed6..d22c123 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,10 +1,10 @@
 #
-# This file is autogenerated by pip-compile with python 3.8
-# To update, run:
+# This file is autogenerated by pip-compile with Python 3.8
+# by the following command:
 #
 #    pip-compile requirements.in
 #
-prettytable==3.4.1
+prettytable==3.9.0
     # via -r requirements.in
-wcwidth==0.2.5
+wcwidth==0.2.13
     # via prettytable


Test patch:
diff --git a/test_piplicenses.py b/test_piplicenses.py
index 276eaa4..41d09cf 100644
--- a/test_piplicenses.py
+++ b/test_piplicenses.py
@@ -576,8 +576,6 @@ def test_format_rst_without_filter(self) -> None:
         self.assertTrue(table.header)
         self.assertEqual("+", table.junction_char)
         self.assertEqual(RULE_ALL, table.hrules)
-        with self.assertRaises(docutils.utils.SystemMessage):
-            self.check_rst(str(table))
         piplicenses.importlib_metadata.distributions = (
             importlib_metadata_distributions_orig
         )