Pericardiocentesis is a procedure used to test for viruses, bacteria, and fungus. The physician puts a small tube through the skin, directly into the pericardial sac, and withdraws fluid. The fluid then is tested for viruses,