Add a test
This commit is contained in:
parent
20fa398fdb
commit
7e8eeec02f
|
@ -733,7 +733,7 @@ fn test_raw_idents() {
|
|||
#[pyclass]
|
||||
struct Issue1505 {}
|
||||
|
||||
macro_rules! issue_1505 {
|
||||
macro_rules! pymethods {
|
||||
(
|
||||
#[pymethods]
|
||||
impl $ty: ty {
|
||||
|
@ -747,7 +747,7 @@ macro_rules! issue_1505 {
|
|||
};
|
||||
}
|
||||
|
||||
issue_1505!(
|
||||
pymethods!(
|
||||
#[pymethods]
|
||||
impl Issue1505 {
|
||||
fn issue_1505(&self, _py: Python<'_>) {}
|
||||
|
@ -819,3 +819,13 @@ issue_1506!(
|
|||
}
|
||||
}
|
||||
);
|
||||
|
||||
#[pyclass]
|
||||
struct Issue1696 {}
|
||||
|
||||
pymethods!(
|
||||
#[pymethods]
|
||||
impl Issue1696 {
|
||||
fn issue_1696(&self, _x: &InstanceMethod) {}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue