示例#1
0
 def f():
     from time import clock as c
     now = c()
     try:
         now = time
     except NameError:  pass
     else: self.fail("time should be undefined")
     try:
         now = clock
     except NameError:  pass
     else: self.fail("clock should be undefined")
示例#2
0
def f():
    from time import clock as c
    now = c()
    try:
        now = time
    except NameError:  pass
    else: Fail("time should be undefined")
    try:
        now = clock
    except NameError:  pass
    else: Fail("clock should be undefined")