From 4bb99811221d0cbbf52e6ab59a76bbe6bd8fba6c Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 13 Jun 2021 15:13:29 +0200 Subject: Make pcb-tools pytest pass without warnings --- gerbonara/gerber/tests/test_excellon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gerbonara/gerber/tests/test_excellon.py') diff --git a/gerbonara/gerber/tests/test_excellon.py b/gerbonara/gerber/tests/test_excellon.py index d6e83cc..ef34f67 100644 --- a/gerbonara/gerber/tests/test_excellon.py +++ b/gerbonara/gerber/tests/test_excellon.py @@ -17,7 +17,7 @@ NCDRILL_FILE = os.path.join(os.path.dirname(__file__), "resources/ncdrill.DRD") def test_format_detection(): """ Test file type detection """ - with open(NCDRILL_FILE, "rU") as f: + with open(NCDRILL_FILE, "r") as f: data = f.read() settings = detect_excellon_format(data) assert settings["format"] == (2, 4) @@ -36,9 +36,9 @@ def test_read(): def test_write(): ncdrill = read(NCDRILL_FILE) ncdrill.write("test.ncd") - with open(NCDRILL_FILE, "rU") as src: + with open(NCDRILL_FILE, "r") as src: srclines = src.readlines() - with open("test.ncd", "rU") as res: + with open("test.ncd", "r") as res: for idx, line in enumerate(res): assert line.strip() == srclines[idx].strip() os.remove("test.ncd") -- cgit