-
Notifications
You must be signed in to change notification settings - Fork 993
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
[develop2] Fix bug in override=True
trait propagation
#10624
Conversation
@@ -212,6 +212,8 @@ def aggregate(self, other): | |||
self.libs |= other.libs | |||
self.run = self.run or other.run | |||
self.visible |= other.visible | |||
# The force trait is also defined from an override | |||
self.force |= other.force or other.override |
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.
This is the core fix of this PR, the rests are tests, output and removing dead code
@@ -58,4 +58,4 @@ def get(self, *args, **kwargs): | |||
requester_class=BuggyRequester) | |||
client.run("install --reference=pkg/0.1@lasote/stable", assert_error=True) | |||
self.assertEqual(str(client.out).count("Waiting 0 seconds to retry..."), 2) | |||
self.assertEqual(str(client.out).count("Error 200 downloading"), 3) | |||
self.assertEqual(str(client.out).count("Error 200 downloading"), 4) |
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.
This increments by 1 because the detailed information about the Graph error includes the error downloading message.
This is necessary for the 2.0 docs and conan-io/examples2#2