Changeset 3475


Ignore:
Timestamp:
Mar 23, 2011 3:48:13 AM (13 years ago)
Author:
bennylp
Message:

Misc (re #1175): added protection against broken pipe exception in python unit test when handling error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/pjsua/run.py

    r3248 r3475  
    187187                time.sleep(1) 
    188188                for p in t.process: 
    189                         p.send("q") 
    190                         p.send("q") 
     189                        # Protect against 'Broken pipe' exception 
     190                        try: 
     191                                p.send("q") 
     192                                p.send("q") 
     193                        except: 
     194                                pass 
    191195                        is_err = False 
    192196                        try: 
Note: See TracChangeset for help on using the changeset viewer.