File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 black :
55 runs-on : ubuntu-latest
66 steps :
7- - uses : actions/checkout@v3
7+ - uses : actions/checkout@v7
88 - uses : psf/black@stable
99 isort :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v3
13- - uses : actions/setup-python@v4
14- with :
15- python-version : 3.8
16- - uses : jamescurtin/isort-action@master
12+ - uses : actions/checkout@v7
13+ - uses : actions/setup-python@v6
14+ - run : pip install isort
15+ - run : isort --check-only --diff .
Original file line number Diff line number Diff line change 44 pyflakes :
55 runs-on : ubuntu-latest
66 steps :
7- - uses : actions/checkout@v3
7+ - uses : actions/checkout@v7
88 - run : pip install pyflakes
99 - run : pyflakes $(git ls-files '*.py' | grep -v '^frida/frida_bindgen/assets/')
1010 mypy :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v7
1414 - uses : jpetrucciani/mypy-check@master
1515 with :
1616 mypy_flags : ' --exclude examples --exclude setup --exclude frida/frida_bindgen/assets'
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ on: [push, pull_request]
33jobs :
44 test :
55 runs-on : ubuntu-latest
6+ timeout-minutes : 20
67 steps :
78 - uses : actions/checkout@v7
89 with :
Original file line number Diff line number Diff line change @@ -608,12 +608,15 @@ def test_device_get_process_by_name(self):
608608 with self .assertRaises (self .frida .ProcessNotFoundError ):
609609 device .get_process ("frida-nonexistent-process-zzz" )
610610
611- def test_attach_accepts_pid_and_name (self ):
612- import os
613-
611+ @unittest .skipIf (sys .platform == "win32" , "requires a POSIX shell" )
612+ def test_attach_accepts_pid (self ):
614613 device = self .frida .get_local_device ()
615- session = device .attach (os .getpid ())
616- session .detach ()
614+ pid = device .spawn (["/bin/sh" , "-c" , "sleep 30" ])
615+ try :
616+ session = device .attach (pid )
617+ session .detach ()
618+ finally :
619+ device .kill (pid )
617620
618621 def test_facade_repr (self ):
619622 device = self .frida .get_local_device ()
You can’t perform that action at this time.
0 commit comments