1. Victor Stinner
  2. fusil

Commits

Victor Stinner  committed 89868fc

fusil-python: update blacklist

  • Participants
  • Parent commits e309087
  • Branches default

Comments (0)

Files changed (1)

File fuzzers/fusil-python

View file
 
     "xmllib": set(("test",)),          # timeout
     "urllib2": set(("randombytes",)),  # unlimited loop
+
+    "py_compile": set(("compile",)),
+    "runpy": set(("run_path",)),
 }
 
 if DEBUG:
             stdout.show_not_matching = True
 
         # avoid matching on "assert" keyword
-        stdout.ignoreRegex(ur"ast\.Assert()")
+        stdout.ignoreRegex(r"ast\.Assert()")
+        # PyPy interact prompt ("# assert did not crash")
+        stdout.ignoreRegex(r"^And now for something completely different:")
 
-        # avoid matching on "memory" keyword
-        stdout.ignoreRegex(ur"memoryview")
-
-        # PyPy interact prompt
-        # avoid false positive on "# assert did not crash"
-        stdout.ignoreRegex(ur"^And now for something completely different:")
-
+        # Whitelist for the "memory" pattern
+        stdout.ignoreRegex(r"memoryview")
+        stdout.ignoreRegex(r"cannot make memory view because object does not have the buffer interface")
         # Ignore mmap.mmap() error ("memory" pattern)
-        stdout.ignoreRegex(ur"memory mapped size must be positive")
+        stdout.ignoreRegex(r"memory mapped size must be positive")
 
         # Hide Python warnings on import
         warnings.simplefilter('ignore')