We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c3ce9 commit 874a6ecCopy full SHA for 874a6ec
1 file changed
patsy/test_highlevel.py
@@ -703,3 +703,12 @@ def test_0d_data():
703
assert np.allclose(build_design_matrices([mat.design_info.builder],
704
data_series)[0],
705
expected)
706
+
707
+def test_env_not_saved_in_builder():
708
+ x_in_env = [1, 2, 3]
709
+ design_matrix = dmatrix("x_in_env", {})
710
711
+ x_in_env = [10, 20, 30]
712
+ design_matrix2 = dmatrix(design_matrix.design_info.builder, {})
713
714
+ assert np.allclose(design_matrix, design_matrix2)
0 commit comments