Skip to content

Commit

Permalink
Merge pull request #274 from tovrstra/fix-pylint-2.9.3
Browse files Browse the repository at this point in the history
Fix pylint 2.9.3
  • Loading branch information
tovrstra authored Jul 5, 2021
2 parents 1de4661 + e80e463 commit a7d7d59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
!~/miniconda3/envs/*/locks
!~/miniconda3/envs/*/pkgs
!~/miniconda3/envs/*/var
key: ${{ runner.os }}-conda-3
key: ${{ runner.os }}-conda-4
- name: Install Roberto
run: |
python -m pip install roberto>=2.0.0
Expand Down
9 changes: 6 additions & 3 deletions iodata/test/test_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def test_load_dump_h2o_5points(tmpdir):
fn_cube2 = tmpdir.join('iodata_h2o_5points.cube')
dump_one(mol1, fn_cube2)
# read the contents as string (skip the first 2 lines) & compare
content1 = open(fn_cube1, "r").read().split("\n", 2)[-1]
with open(fn_cube1, "r") as f:
content1 = f.read().split("\n", 2)[-1]
content2 = fn_cube2.read().split("\n", 2)[-1]
assert content1 == content2

Expand All @@ -117,7 +118,8 @@ def test_load_dump_ch4_6points(tmpdir):
fn_cube2 = tmpdir.join('iodata_ch4_6points.cube')
dump_one(mol1, fn_cube2)
# read the contents as string (skip the first 2 lines) & compare
content1 = open(fn_cube1, "r").read().split("\n", 2)[-1]
with open(fn_cube1, "r") as f:
content1 = f.read().split("\n", 2)[-1]
content2 = fn_cube2.read().split("\n", 2)[-1]
assert content1 == content2

Expand All @@ -130,6 +132,7 @@ def test_load_dump_nh3_7points(tmpdir):
fn_cube2 = tmpdir.join('iodata_nh3_7points.cube')
dump_one(mol1, fn_cube2)
# read the contents as string (skip the first 2 lines) & compare
content1 = open(fn_cube1, "r").read().split("\n", 2)[-1]
with open(fn_cube1, "r") as f:
content1 = f.read().split("\n", 2)[-1]
content2 = fn_cube2.read().split("\n", 2)[-1]
assert content1 == content2

0 comments on commit a7d7d59

Please sign in to comment.