4949from psutil .tests import PYPY
5050from psutil .tests import PYTHON_EXE
5151from psutil .tests import PYTHON_EXE_ENV
52- from psutil .tests import QEMU_USER
5352from psutil .tests import PsutilTestCase
5453from psutil .tests import ThreadTask
5554from psutil .tests import call_until
@@ -257,7 +256,6 @@ def test_cpu_percent_numcpus_none(self):
257256 psutil .Process ().cpu_percent ()
258257 assert m .called
259258
260- @pytest .mark .skipif (QEMU_USER , reason = "QEMU user not supported" )
261259 def test_cpu_times (self ):
262260 times = psutil .Process ().cpu_times ()
263261 assert times .user >= 0.0 , times
@@ -270,7 +268,6 @@ def test_cpu_times(self):
270268 for name in times ._fields :
271269 time .strftime ("%H:%M:%S" , time .localtime (getattr (times , name )))
272270
273- @pytest .mark .skipif (QEMU_USER , reason = "QEMU user not supported" )
274271 def test_cpu_times_2 (self ):
275272 user_time , kernel_time = psutil .Process ().cpu_times ()[:2 ]
276273 utime , ktime = os .times ()[:2 ]
@@ -642,8 +639,6 @@ def test_memory_maps(self):
642639 continue
643640 if BSD and nt .path == "pvclock" :
644641 continue
645- if QEMU_USER and "/bin/qemu-" in nt .path :
646- continue
647642 assert os .path .isabs (nt .path ), nt .path
648643
649644 if POSIX :
@@ -710,7 +705,6 @@ def test_is_running(self):
710705 assert not p .is_running ()
711706 assert not p .is_running ()
712707
713- @pytest .mark .skipif (QEMU_USER , reason = "QEMU user not supported" )
714708 def test_exe (self ):
715709 p = self .spawn_psproc ()
716710 exe = p .exe ()
@@ -763,9 +757,6 @@ def test_cmdline(self):
763757 if pyexe != PYTHON_EXE :
764758 assert ' ' .join (p .cmdline ()[1 :]) == ' ' .join (cmdline [1 :])
765759 return
766- if QEMU_USER :
767- assert ' ' .join (p .cmdline ()[2 :]) == ' ' .join (cmdline )
768- return
769760 assert ' ' .join (p .cmdline ()) == ' ' .join (cmdline )
770761
771762 @pytest .mark .skipif (PYPY , reason = "broken on PYPY" )
@@ -783,8 +774,6 @@ def test_long_cmdline(self):
783774 assert p .cmdline () == cmdline
784775 except psutil .ZombieProcess :
785776 raise pytest .skip ("OPENBSD: process turned into zombie" )
786- elif QEMU_USER :
787- assert p .cmdline ()[2 :] == cmdline
788777 else :
789778 ret = p .cmdline ()
790779 if NETBSD and ret == []:
@@ -798,8 +787,7 @@ def test_name(self):
798787 pyexe = os .path .basename (os .path .realpath (sys .executable )).lower ()
799788 assert pyexe .startswith (name ), (pyexe , name )
800789
801- @pytest .mark .skipif (PYPY or QEMU_USER , reason = "unreliable on PYPY" )
802- @pytest .mark .skipif (QEMU_USER , reason = "unreliable on QEMU user" )
790+ @pytest .mark .skipif (PYPY , reason = "unreliable on PYPY" )
803791 def test_long_name (self ):
804792 pyexe = create_py_exe (self .get_testfn (suffix = string .digits * 2 ))
805793 cmdline = [
@@ -830,7 +818,6 @@ def test_long_name(self):
830818 # @pytest.mark.skipif(SUNOS, reason="broken on SUNOS")
831819 # @pytest.mark.skipif(AIX, reason="broken on AIX")
832820 # @pytest.mark.skipif(PYPY, reason="broken on PYPY")
833- # @pytest.mark.skipif(QEMU_USER, reason="broken on QEMU user")
834821 # def test_prog_w_funky_name(self):
835822 # # Test that name(), exe() and cmdline() correctly handle programs
836823 # # with funky chars such as spaces and ")", see:
@@ -938,7 +925,6 @@ def cleanup(init):
938925 except psutil .AccessDenied :
939926 pass
940927
941- @pytest .mark .skipif (QEMU_USER , reason = "QEMU user not supported" )
942928 def test_status (self ):
943929 p = psutil .Process ()
944930 assert p .status () == psutil .STATUS_RUNNING
@@ -1166,7 +1152,6 @@ def test_parent_multi(self):
11661152 assert grandchild .parent () == child
11671153 assert child .parent () == parent
11681154
1169- @pytest .mark .skipif (QEMU_USER , reason = "QEMU user not supported" )
11701155 @retry_on_failure ()
11711156 def test_parents (self ):
11721157 parent = psutil .Process ()
0 commit comments