A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
test: progress_bar with iterator and total (#6424)
Andrew Glick052acce2ed62
diff --git a/tests/_plugins/stateless/status/test_progress.py b/tests/_plugins/stateless/status/test_progress.pyindex a064d470f6..f94101789e 100644--- a/tests/_plugins/stateless/status/test_progress.py+++ b/tests/_plugins/stateless/status/test_progress.py@@ -129,6 +129,9 @@ def test_progress_without_context():assert barbar.update()+ # iterator (no len()) with total+ assert progress_bar(iter(range(1000)), total=1000)+with pytest.raises(RuntimeError):for _ in progress_bar(total=10):pass