Changeset f01273e4dcde9381969c9f8b039e6fe81fff8bfb

Show
Ignore:
Timestamp:
08/14/07 17:38:25 (2 years ago)
Author:
njs@…
Branch:
org.vorpus.parti
Parent:
89ead2ef14dc83b20fcfcadf965ac4882a010ae3
Child:
d5a15038f4d76b5b190a5fb9133321449444f1eb
Message:

small fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • /yatest.py

    r129c.. rf012..  
    2828#      twisted...). 
    2929#   -- Ability to run specific tests 
     30#   -- Some way to have setup that happens in the parent for multiple children 
     31#      (e.g. spawning Xvfb, dbus-daemon, trusting that they will reset when 
     32#      all their clients have been *killed off*, even if we do not trust 
     33#      anything less than that to work). 
    3034#   -- Parallelized testing? 
    3135 
     
    7276        sys.path.insert(0, pkg_dir) 
    7377 
    74         del os.environ["DBUS_SESSION_BUS_ADDRESS"] 
    75         del os.environ["DISPLAY"] 
     78        if "DBUS_SESSION_BUS_ADDRESS" in os.environ: 
     79            del os.environ["DBUS_SESSION_BUS_ADDRESS"] 
     80        if "DISPLAY" in os.environ: 
     81            del os.environ["DISPLAY"] 
    7682 
    7783        reporter = Reporter()