Skip to content

Commit

Permalink
suppres warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Apr 28, 2021
1 parent 88f8212 commit 17797e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions testsuite/MDAnalysisTests/core/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
)
import pytest
import operator
import warnings

import MDAnalysis as mda
from MDAnalysis.exceptions import NoDataError
Expand Down Expand Up @@ -1465,8 +1466,10 @@ def test_decorator(self, compound, pbc, unwrap):

@pytest.fixture()
def tpr():
return mda.Universe(TPR)

with warnings.catch_warnings():
warnings.filterwarnings("ignore",
message="No coordinate reader found")
return mda.Universe(TPR)

class TestGetConnectionsAtoms(object):
"""Test Atom and AtomGroup.get_connections"""
Expand Down

0 comments on commit 17797e9

Please sign in to comment.