ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/test/py_tests/test_ev.py
(Generate patch)

Comparing ray/test/py_tests/test_ev.py (file contents):
Revision 1.1 by schorsch, Sun Dec 7 20:40:51 2003 UTC vs.
Revision 1.2 by schorsch, Thu Mar 10 01:49:56 2016 UTC

# Line 7 | Line 7 | import unittest
7   from unit_tools import support
8   from unit_tools import lcompare
9  
10 + _bindir = None
11 +
12   class EvTestCase(unittest.TestCase):
13          def setUp(self):
14 <                self.oldpath = os.environ['PATH']
15 <                os.environ['PATH'] = os.path.abspath(support.BINDIR)
14 >                if _bindir:
15 >                        self.oldpath = os.environ['PATH']
16 >                        os.environ['PATH'] = _bindir
17  
18          def tearDown(self):
19 <                os.environ['PATH'] = self.oldpath
19 >                if _bindir:
20 >                        os.environ['PATH'] = self.oldpath
21  
22          ltest = [
23                  ['2.3 + 5 * 21.7 / 1.43', [2.3 + 5 * 21.7 / 1.43]],
# Line 46 | Line 50 | class EvTestCase(unittest.TestCase):
50          def test_multipleres(self):
51                  pass # XXX implement
52  
53 < def main():
53 > def main(bindir=None):
54 >        global _bindir
55 >        _bindir=bindir
56          support.run_case(EvTestCase)
57  
58   if __name__ == '__main__':

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)