~ubuntu-branches/ubuntu/karmic/pypy/karmic

« back to all changes in this revision

Viewing changes to pypy/translator/cli/test/test_primitive.py

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2007-04-13 09:33:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070413093309-yoojh4jcoocu2krz
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import os
 
2
import time
 
3
 
 
4
from pypy.translator.cli.test.runtest import CliTest
 
5
 
 
6
class TestPrimitive(CliTest):
 
7
 
 
8
    def test_time_time(self):
 
9
        def fn():
 
10
            return time.time()
 
11
        t1 = self.interpret(fn, [])
 
12
        t2 = self.interpret(fn, [])
 
13
        assert t1 <= t2