Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
ddeae6c
1
Parent(s):
a1457c0
style: unused variables
Browse files- pysr/test/test.py +2 -2
pysr/test/test.py
CHANGED
@@ -893,7 +893,7 @@ class TestHelpMessages(unittest.TestCase):
|
|
893 |
|
894 |
# More complex, and with error
|
895 |
with self.assertRaises(TypeError) as cm:
|
896 |
-
|
897 |
|
898 |
self.assertIn(
|
899 |
"`ncyclesperiterationn` is not a valid keyword", str(cm.exception)
|
@@ -904,7 +904,7 @@ class TestHelpMessages(unittest.TestCase):
|
|
904 |
|
905 |
# Farther matches (this might need to be changed)
|
906 |
with self.assertRaises(TypeError) as cm:
|
907 |
-
|
908 |
|
909 |
self.assertIn("`unary_operators`, `binary_operators`", str(cm.exception))
|
910 |
|
|
|
893 |
|
894 |
# More complex, and with error
|
895 |
with self.assertRaises(TypeError) as cm:
|
896 |
+
PySRRegressor(ncyclesperiterationn=5)
|
897 |
|
898 |
self.assertIn(
|
899 |
"`ncyclesperiterationn` is not a valid keyword", str(cm.exception)
|
|
|
904 |
|
905 |
# Farther matches (this might need to be changed)
|
906 |
with self.assertRaises(TypeError) as cm:
|
907 |
+
PySRRegressor(operators=["+", "-"])
|
908 |
|
909 |
self.assertIn("`unary_operators`, `binary_operators`", str(cm.exception))
|
910 |
|