Skip to content

Commit

Permalink
Merge pull request #263 from kngwyu/fix-240
Browse files Browse the repository at this point in the history
Fix #240
  • Loading branch information
konstin authored Nov 11, 2018
2 parents ef68b22 + bd6f923 commit 4c0ddbe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions examples/rustapi_module/tests/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,9 @@ def test_tz_class():
assert dt.utcoffset() == pdt.timedelta(hours=1)
assert dt.dst() is None

@pytest.mark.skip(reason='to debug with the latest master')
def test_tz_class_introspection():
tzi = rdt.TzClass()

assert tzi.__class__ == rdt.TzClass
assert repr(tzi) == "TzClass()"
assert repr(tzi).startswith('<rustapi_module.datetime.TzClass object at')

5 changes: 0 additions & 5 deletions src/typeob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,6 @@ where

// set type flags
py_class_flags::<T>(type_object);
if type_object.tp_base
!= unsafe { &ffi::PyBaseObject_Type as *const ffi::PyTypeObject as *mut ffi::PyTypeObject }
{
type_object.tp_flags |= ffi::Py_TPFLAGS_HEAPTYPE
}

// register type object
unsafe {
Expand Down

0 comments on commit 4c0ddbe

Please sign in to comment.