Skip to content

Commit

Permalink
Fixes #7078: Add unit tests for abstract nature of ClassicalIOChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
pollyshaw committed Jul 18, 2022
1 parent ead3f9d commit 7e6c647
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/python/pulse/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,17 @@ def test_channel_hash(self):
self.assertEqual(hash_1, hash_2)


class TestClassicalIOChannel(QiskitTestCase):
"""Test base classical IO channel."""

def test_cannot_be_instantiated(self):
"""Test base classical IO channel cannot be instantiated."""
with self.assertRaises(NotImplementedError):
ClassicalIOChannel(0)


class TestMemorySlot(QiskitTestCase):
"""AcquireChannel tests."""
"""MemorySlot tests."""

def test_default(self):
"""Test default memory slot."""
Expand Down

0 comments on commit 7e6c647

Please sign in to comment.