Skip to content

Commit 1bb97b9

Browse files
authored
MAINT: Correct two misspellings (#3476)
1 parent e3a16d4 commit 1bb97b9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_writer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def test_encrypt(use_128bit, user_password, owner_password, pdf_file_path):
601601
assert reader.metadata.get("/Producer") == "pypdf"
602602
assert new_text == orig_text
603603

604-
# Test the owner password (stbytesr):
604+
# Test the owner password (bytes):
605605
reader = PdfReader(pdf_file_path, password=b"ownerpwd")
606606
new_text = reader.pages[0].extract_text()
607607
assert reader.metadata.get("/Producer") == "pypdf"
@@ -688,7 +688,6 @@ def test_add_named_destination(pdf_file_path):
688688
assert root[4] == "A named dest3"
689689

690690
# test get_object
691-
692691
assert writer.get_object(root[1].idnum) == writer.get_object(root[1])
693692
with pytest.raises(ValueError) as exc:
694693
writer.get_object(reader.pages[0].indirect_reference)
@@ -2416,7 +2415,7 @@ def test_selfont():
24162415

24172416

24182417
@pytest.mark.enable_socket
2419-
def test_no_ressource_for_14_std_fonts(caplog):
2418+
def test_no_resource_for_14_std_fonts(caplog):
24202419
"""Cf #2670"""
24212420
url = "https://github.com/py-pdf/pypdf/files/15405390/f1040.pdf"
24222421
name = "iss2670.pdf"

0 commit comments

Comments
 (0)