From a72084d92c2ba5e96c8cb6f732fdfa033aada468 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Sep 2024 10:49:06 +0530 Subject: [PATCH] ... --- src/calibre/utils/smartypants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/utils/smartypants.py b/src/calibre/utils/smartypants.py index 3d44112f08..a00a615122 100644 --- a/src/calibre/utils/smartypants.py +++ b/src/calibre/utils/smartypants.py @@ -875,6 +875,8 @@ def run_tests(return_tests=False): def test_educated_quotes(self): self.assertEqual(sp('''"Isn't this fun?"'''), '''“Isn’t this fun?”''') + self.assertEqual(sp("'abc'"), '‘abc’') + tests = unittest.defaultTestLoader.loadTestsFromTestCase(TestSmartypantsAllAttributes) if return_tests: