[pypy-svn] r48395 - pypy/dist/pypy/objspace/flow/test

tismer at codespeak.net tismer at codespeak.net
Thu Nov 8 04:55:25 CET 2007


Author: tismer
Date: Thu Nov  8 04:55:24 2007
New Revision: 48395

Modified:
   pypy/dist/pypy/objspace/flow/test/test___import_.py
Log:
making a trivial test a bit less trivial

Modified: pypy/dist/pypy/objspace/flow/test/test___import_.py
==============================================================================
--- pypy/dist/pypy/objspace/flow/test/test___import_.py	(original)
+++ pypy/dist/pypy/objspace/flow/test/test___import_.py	Thu Nov  8 04:55:24 2007
@@ -4,9 +4,9 @@
     import os
     mod = os.name
     raises(TypeError, __import__, ())
-    x = __import__(mod)
-    x = __import__(mod, None)
-    x = __import__(mod, None, None)
-    x = __import__(mod, None, None, None)
+    assert __import__(mod).__name__ == os.name
+    assert __import__(mod, None).__name__ == os.name
+    assert __import__(mod, None, None).__name__ == os.name
+    assert __import__(mod, None, None, None).__name__ == os.name
     raises(TypeError, __import__, (mod, None, None, None, None))
     # XXX this will have to be adjusted for Python 2.5 pretty soon-ish :-)
\ No newline at end of file



More information about the Pypy-commit mailing list