summaryrefslogtreecommitdiff
path: root/gerber/tests/test_common.py
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-11-15 22:28:56 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-11-15 22:28:56 -0200
commit6e29b9bcae8167dbb9c75e5a79e09886b952e988 (patch)
treefbc04c024bacb192567e9fb5d112673bbf6c1600 /gerber/tests/test_common.py
parentebc85181975add0fd98c18441f029e9af696f237 (diff)
downloadgerbonara-6e29b9bcae8167dbb9c75e5a79e09886b952e988.tar.gz
gerbonara-6e29b9bcae8167dbb9c75e5a79e09886b952e988.tar.bz2
gerbonara-6e29b9bcae8167dbb9c75e5a79e09886b952e988.zip
Use Python's universal newlines to open files
Diffstat (limited to 'gerber/tests/test_common.py')
-rw-r--r--gerber/tests/test_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/tests/test_common.py b/gerber/tests/test_common.py
index 0ba4b68..7c66c0f 100644
--- a/gerber/tests/test_common.py
+++ b/gerber/tests/test_common.py
@@ -25,9 +25,9 @@ def test_file_type_detection():
def test_load_from_string():
- with open(NCDRILL_FILE, 'r') as f:
+ with open(NCDRILL_FILE, 'rU') as f:
ncdrill = loads(f.read())
- with open(TOP_COPPER_FILE, 'r') as f:
+ with open(TOP_COPPER_FILE, 'rU') as f:
top_copper = loads(f.read())
assert_true(isinstance(ncdrill, ExcellonFile))
assert_true(isinstance(top_copper, GerberFile))