Skip to content

Commit e0ce5a3

Browse files
author
Sylvain MARIE
committed
Reverted to dict access to make test pass
1 parent 6bfa591 commit e0ce5a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyfields/tests/test_readme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ class Foo:
249249

250250
a_name = "test_native_descriptors.<locals>.Foo.a" if sys.version_info >= (3, 6) else "<unknown_cls>.None"
251251
b_name = "test_native_descriptors.<locals>.Foo.b" if sys.version_info >= (3, 6) else "<unknown_cls>.None"
252-
assert repr(Foo.a) == "<NativeField: %s>" % a_name
253-
assert repr(Foo.b) == "<DescriptorField: %s>" % b_name
252+
assert repr(Foo.__dict__['a']) == "<NativeField: %s>" % a_name
253+
assert repr(Foo.__dict__['b']) == "<DescriptorField: %s>" % b_name
254254

255255
f = Foo()
256256

0 commit comments

Comments
 (0)