vmprof / vmprof-python

vmprof - a statistical program profiler
http://vmprof.com
Other
433 stars 54 forks source link

Tests in GitHub actions #254

Closed cfbolz closed 1 year ago

cfbolz commented 1 year ago

try to get the unit tests to be run by github actions

mattip commented 1 year ago

test_multithread is failing on windows

================================== FAILURES ===================================
  _____________________________ test_multithreaded ______________________________

      def test_multithreaded():
          if '__pypy__' in sys.builtin_module_names:
              pytest.skip("not supported on pypy just yet")
          import threading
          finished = []

          def f():
              for k in range(1000):
                  l = [a for a in xrange(COUNT)]
              finished.append("foo")

          threads = [threading.Thread(target=f), threading.Thread(target=f)]
          prof = vmprof.Profiler()
  >       with prof.measure():

  vmprof\test\test_run.py:218: 
cfbolz commented 1 year ago

there are some flaky tests that segfault occasionally, that makes everything extra-annoying :-(