-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[FIX] OWSom: Fix crash for data without class variable #6763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -723,6 +723,13 @@ def test_modified_info(self): | |
| restart_button.click() | ||
| self.assertFalse(w.Information.modified.is_shown()) | ||
|
|
||
| def test_make_domain_without_class_vars(self): | ||
| widget = self.widget | ||
| self.send_signal(self.widget.Inputs.data, self.iris) | ||
| widget.data.domain.class_vars = None | ||
|
||
| widget.update_output() | ||
| self.assertIsNotNone(self.get_output(widget.Outputs.annotated_data)) | ||
|
||
|
|
||
|
|
||
| class TestComputeValues(unittest.TestCase): | ||
| def test_eq_hash(self): | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the above. We consider
Domainimmutable, soclass_varsmust not be changed, neither is there any need to change them because that already equal().