Author: Devin Jeanpierre <[email protected]>
Branch: cpyext-test-A
Changeset: r84080:c914cf3f4816
Date: 2016-04-30 23:05 -0700
http://bitbucket.org/pypy/pypy/changeset/c914cf3f4816/

Log:    Include datetime.h in test_datetime, for CPython-compatibility.

diff --git a/pypy/module/cpyext/test/test_datetime.py 
b/pypy/module/cpyext/test/test_datetime.py
--- a/pypy/module/cpyext/test/test_datetime.py
+++ b/pypy/module/cpyext/test/test_datetime.py
@@ -109,7 +109,7 @@
                  Py_RETURN_NONE;
              """
              )
-            ])
+            ], prologue='#include "datetime.h"\n')
         import datetime
         assert module.get_types() == (datetime.date,
                                       datetime.datetime,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to