Commits

Ronny Pfannschmidt committed c254311

CompileByteCode now does real compilation

Comments (0)

Files changed (1)

tests/tasks/test_build.py

     queue.add(copy, parent=compile)
 
     queue.run_all()
+    target =  build_lib.join('testpkg/__init__.pyc')
     assert build_lib.join('testpkg/__init__.py').check()
-    assert build_lib.join('testpkg/__init__.pyc').check()
+    assert target.check()
+    import imp
+    magic = imp.get_magic()
+    target_magic = target.read()[:4]
+    assert target_magic == magic