1. Ronny Pfannschmidt
  2. kij

Commits

Ronny Pfannschmidt  committed c254311

CompileByteCode now does real compilation

  • Participants
  • Parent commits 88bad85
  • Branches default

Comments (0)

Files changed (1)

File tests/tasks/test_build.py

View file
     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