-
Notifications
You must be signed in to change notification settings - Fork 514
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
Fix 2.7 tests #2145
Merged
Merged
Fix 2.7 tests #2145
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
a015f97
Fix UnicodeEncodeError on 2.7
sentrivana 561f4ba
attempt
sentrivana 22ab0c4
fail a test explicitly
sentrivana c279ef1
Do not encode cached value to determine size (#2143)
sentrivana b4b1910
Merge branch 'master' into ivana/fix-2.7-tests
sentrivana 5be026c
.
sentrivana a8c6a3a
more locale fun
sentrivana c925bef
more locales
sentrivana 6f2bfd8
in tox.ini maybe?
sentrivana d879898
Merge branch 'master' into ivana/fix-2.7-tests
sentrivana 97d8d9f
maybe in passenv?
sentrivana 4817a0c
another attempt
sentrivana 274ce06
attempt
sentrivana 6b1c0ed
test output
sentrivana 7be749e
?
sentrivana 06a4cbc
?
sentrivana 1be53cc
another attempt
sentrivana 402b848
Remove extra space
sentrivana 63eee7a
.
sentrivana 2708e0b
quotes?
sentrivana 3b62ae6
??
sentrivana 49e6a99
.
sentrivana b0dba47
.
sentrivana 759f984
.
sentrivana f4da3cd
.
sentrivana b4f6eb8
.
sentrivana 534462f
.
sentrivana 9b9f84e
.
sentrivana fab1c8e
.
sentrivana b66c73c
Merge branch 'master' into ivana/fix-2.7-tests
sentrivana d4b055c
remove locale stuff
sentrivana 6036689
.
sentrivana 58b7e74
test fixes
sentrivana 6f2f508
.
sentrivana 1a94f79
skip if old
sentrivana 002d9f6
mark all exceptiongroup tests with >=3.11
sentrivana 2145268
Disable profiler tests for py2.7
sentrivana ba7288d
unicode stuff
sentrivana 0fe22ec
more tests
sentrivana 044ef9f
unicode...
sentrivana 473b0b0
this actually should work
sentrivana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,11 +105,9 @@ def test_breadcrumb_extra_scrubbing(sentry_init, capture_events): | |
"password": "[Filtered]", | ||
} | ||
|
||
assert event["_meta"] == { | ||
"extra": {"auth": {"": {"rem": [["!config", "s"]]}}}, | ||
"breadcrumbs": { | ||
"values": {"0": {"data": {"password": {"": {"rem": [["!config", "s"]]}}}}} | ||
}, | ||
assert event["_meta"]["extra"]["auth"] == {"": {"rem": [["!config", "s"]]}} | ||
assert event["_meta"]["breadcrumbs"] == { | ||
"values": {"0": {"data": {"password": {"": {"rem": [["!config", "s"]]}}}}} | ||
} | ||
|
||
|
||
|
@@ -124,8 +122,8 @@ def test_span_data_scrubbing(sentry_init, capture_events): | |
|
||
(event,) = events | ||
assert event["spans"][0]["data"] == {"password": "[Filtered]", "datafoo": "databar"} | ||
assert event["_meta"] == { | ||
"spans": {"0": {"data": {"password": {"": {"rem": [["!config", "s"]]}}}}} | ||
assert event["_meta"]["spans"] == { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here ^ |
||
"0": {"data": {"password": {"": {"rem": [["!config", "s"]]}}}} | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Changed this because in py2.7 there's an additional
'sys.argv': {'': {'len': 11}}}}
inevent["_meta"]["extra"]
, I'm guessing from here. Unsure why this only happens on 2.7 but it doesn't seem to be something that needs to be fixed.