From c873df62b9d4ebb0995c22796f8da2ccf791a711 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Wed, 16 Jun 2021 15:19:19 -0500 Subject: [PATCH] Use 100_000_000 for improved readability --- tests/test_gallery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_gallery.py b/tests/test_gallery.py index 2780f75..00696f2 100644 --- a/tests/test_gallery.py +++ b/tests/test_gallery.py @@ -292,7 +292,7 @@ def test_gallery(settings, tmpdir): def test_gallery_max_img_pixels(settings, tmpdir, monkeypatch): "Test the Gallery class with the max_img_pixels setting." - monkeypatch.setattr('PIL.Image.MAX_IMAGE_PIXELS', 100000000) + monkeypatch.setattr('PIL.Image.MAX_IMAGE_PIXELS', 100_000_000) with open(str(tmpdir.join('my.css')), mode='w') as f: f.write('color: red') @@ -308,7 +308,7 @@ def test_gallery_max_img_pixels(settings, tmpdir, monkeypatch): gal = Gallery(settings, ncpu=1) gal.build() - settings['max_img_pixels'] = 100000000 + settings['max_img_pixels'] = 100_000_000 gal = Gallery(settings, ncpu=1) gal.build() finally: