From 0f6d4b166f63d5804c2a0a097ed6f0125cb00e0d Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Wed, 1 Mar 2023 15:49:10 -0500 Subject: [PATCH] tb: mii_elastic_buffer: Remove unnecessary try/except The value will be checked for Xs in the following comparison. Signed-off-by: Sean Anderson --- tb/mii_elastic_buffer.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tb/mii_elastic_buffer.py b/tb/mii_elastic_buffer.py index 2e6fb9f..1cbba1e 100644 --- a/tb/mii_elastic_buffer.py +++ b/tb/mii_elastic_buffer.py @@ -73,10 +73,6 @@ async def test_elastic(buf): last = None for nibble in outs: if nibble is not None: - try: - int(nibble) - except: - raise assert nibble != last last = nibble