Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yara-python
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
yara-python
Commits
7abd5c0e
Commit
7abd5c0e
authored
Dec 05, 2018
by
Victor M. Alvarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests introduced in
34c581a3
.
parent
34c581a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
tests.py
tests.py
+8
-3
No files found.
tests.py
View file @
7abd5c0e
...
...
@@ -813,9 +813,14 @@ class TestYara(unittest.TestCase):
r
=
yara
.
compile
(
source
=
'rule test { condition: ext_str matches /ssi$/ }'
,
externals
=
{
'ext_str'
:
'mississippi'
})
self
.
assertFalse
(
r
.
match
(
data
=
'dummy'
))
self
.
assertRaises
(
UnicodeEncodeError
,
yara
.
compile
,
source
=
"rule test { condition: true}"
,
externals
=
{
'foo'
:
u'
\u6765\u6613\u7f51\u7edc\u79d1
'
})
if
sys
.
version_info
[
0
]
>=
3
:
self
.
assertTrue
(
yara
.
compile
(
source
=
"rule test { condition: true}"
,
externals
=
{
'foo'
:
u'
\u6765\u6613\u7f51\u7edc\u79d1
'
}))
else
:
self
.
assertRaises
(
UnicodeEncodeError
,
yara
.
compile
,
source
=
"rule test { condition: true}"
,
externals
=
{
'foo'
:
u'
\u6765\u6613\u7f51\u7edc\u79d1
'
})
def
testCallbackAll
(
self
):
global
rule_data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment