From 633a33e70b8e9b88131d4ba6d4fcf8462f485950 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 9 Feb 2024 15:46:34 +0000 Subject: [PATCH] update --- src/lightning/data/streaming/writer.py | 1 - tests/tests_data/processing/test_data_processor.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/lightning/data/streaming/writer.py b/src/lightning/data/streaming/writer.py index a3d26726aa..db20d93460 100644 --- a/src/lightning/data/streaming/writer.py +++ b/src/lightning/data/streaming/writer.py @@ -395,7 +395,6 @@ class BinaryWriter: config = data["config"] elif config != data["config"]: - breakpoint() raise Exception("The config isn't consistent between chunks. This shouldn't have happened.") chunks_info.extend(data["chunks"]) diff --git a/tests/tests_data/processing/test_data_processor.py b/tests/tests_data/processing/test_data_processor.py index 2b5476f6e8..797d4911d1 100644 --- a/tests/tests_data/processing/test_data_processor.py +++ b/tests/tests_data/processing/test_data_processor.py @@ -553,11 +553,6 @@ class TextTokenizeRecipe(DataChunkRecipe): @pytest.mark.skipif(condition=sys.platform == "win32", reason="Not supported on windows") def test_data_processsor_nlp(tmpdir, monkeypatch): - import builtins - def fail_breakpoint(*args, **kwargs): - pytest.fail("breakpoint() encountered in tests") - builtins.breakpoint = fail_breakpoint - seed_everything(42) monkeypatch.setenv("DATA_OPTIMIZER_CACHE_FOLDER", os.path.join(tmpdir, "chunks"))