Skip to content

Commit ac8d00e

Browse files
authored
Merge pull request #200 from MilesCranmer/deepsource-transform-79c15f10
Format code with black
2 parents f340c5b + c5dc7b7 commit ac8d00e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/test.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,7 @@ def test_sympy_function_fails_as_variable(self):
574574
y = np.random.randn(100)
575575
with self.assertRaises(ValueError) as cm:
576576
model.fit(X, y, variable_names=["x1", "N"])
577-
self.assertIn(
578-
"Variable name",
579-
str(cm.exception)
580-
)
577+
self.assertIn("Variable name", str(cm.exception))
581578

582579
def test_bad_variable_names_fail(self):
583580
model = PySRRegressor()
@@ -586,17 +583,11 @@ def test_bad_variable_names_fail(self):
586583

587584
with self.assertRaises(ValueError) as cm:
588585
model.fit(X, y, variable_names=["Tr(Tij)"])
589-
self.assertIn(
590-
"Invalid variable name",
591-
str(cm.exception)
592-
)
586+
self.assertIn("Invalid variable name", str(cm.exception))
593587

594588
with self.assertRaises(ValueError) as cm:
595589
model.fit(X, y, variable_names=["f{c}"])
596-
self.assertIn(
597-
"Invalid variable name",
598-
str(cm.exception)
599-
)
590+
self.assertIn("Invalid variable name", str(cm.exception))
600591

601592
def test_pickle_with_temp_equation_file(self):
602593
"""If we have a temporary equation file, unpickle the estimator."""

0 commit comments

Comments
 (0)