diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7f6efe5d..9ca877e1 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -83,7 +83,7 @@ jobs: echo "Installing pip + wheel..." python -m pip install --upgrade pip wheel echo "Installing requirements.txt + test dependencies..." - python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0" + python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0,<=61.2" - name: Generate Valid Tests run: | @@ -135,7 +135,7 @@ jobs: echo "Installing pip + wheel..." python -m pip install --upgrade pip wheel echo "Installing requirements.txt + test dependencies..." - python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0" + python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0,<=61.2" - name: Generate Valid Tests run: | @@ -185,7 +185,7 @@ jobs: # echo "Installing pip + wheel..." # python -m pip install --upgrade pip wheel # echo "Installing requirements.txt + test dependencies..." -# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0" +# python -m pip install -r requirements.txt tox tox-gh-actions certifi decorator dict2xml pyflakes "pypdf>=4.1.0" "weasyprint>=53.0,!=57.0,!=60.0,<=61.2" # - name: Generate Valid Tests # run: | # make yestests || true diff --git a/test.py b/test.py index 26224c50..fe2a9199 100644 --- a/test.py +++ b/test.py @@ -502,7 +502,7 @@ def setUp(self): def test_text_content(self): def norm(t): - return re.sub(r'\s+', '', t).strip() + return re.sub(r'\s+', ' ', t).strip() # text = norm('\n'.join( p.text for p in self.pdfxml.xpath('.//Page/text') )) for e in self.root.xpath('./middle//*'): diff --git a/tox.ini b/tox.ini index 016901e0..f75ac65e 100644 --- a/tox.ini +++ b/tox.ini @@ -34,4 +34,4 @@ deps = decorator dict2xml pypdf>=4.1.0 - weasyprint>=53.0,!=57.0,!=60.0 + weasyprint>=53.0,!=57.0,!=60.0,<=61.2