We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e6583 commit ac0e4d0Copy full SHA for ac0e4d0
dowsing/tests/setuptools.py
@@ -396,3 +396,24 @@ def test_circular_references(self) -> None:
396
self.assertEqual(d.name, "foo")
397
self.assertEqual(d.version, "??")
398
self.assertEqual(d.classifiers, ())
399
+
400
+ def test_redefines_builtin(self) -> None:
401
+ d = self._read(
402
+ """\
403
+import setuptools
404
+with open("CREDITS.txt", "r", encoding="utf-8") as fp:
405
+ credits = fp.read()
406
407
+long_desc = "a" + credits + "b"
408
+name = "foo"
409
410
+kwargs = dict(
411
+ long_description = long_desc,
412
+ name = name,
413
+)
414
415
+setuptools.setup(**kwargs)
416
+"""
417
+ )
418
+ self.assertEqual(d.name, "foo")
419
+ self.assertEqual(d.description, "??")
0 commit comments