diff options
| author | Tim Graham <timograham@gmail.com> | 2019-03-20 09:07:49 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-03-20 16:09:01 +0100 |
| commit | bb880e17ebff6ac1bda2a4d6d7a5a10ea338e9c7 (patch) | |
| tree | 05eb501d98825df7798ee3efce44981f2e8d4c8b | |
| parent | e12cf38ae9249fbf89913e015266d3569d911deb (diff) | |
[2.1.x] Fixed serializers test crash if PyYAML isn't installed.
Follow up to a57c783dd4e6dc73847081221827a1902eede88b.
Backport of 55490ac7469a3647ce163bee323f7fe4a06fcaa6 from master
| -rw-r--r-- | tests/serializers/test_yaml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serializers/test_yaml.py b/tests/serializers/test_yaml.py index dbcbd57003..10f73901cb 100644 --- a/tests/serializers/test_yaml.py +++ b/tests/serializers/test_yaml.py @@ -116,7 +116,7 @@ class YamlSerializerTestCase(SerializersTestBase, TestCase): headline: Poker has no place on ESPN pub_date: 2006-06-16 11:00:00 categories:""" + ( - ' [%(first_category_pk)s, %(second_category_pk)s]' if yaml.__version__ < '5.1' + ' [%(first_category_pk)s, %(second_category_pk)s]' if HAS_YAML and yaml.__version__ < '5.1' else '\n - %(first_category_pk)s\n - %(second_category_pk)s') + """ meta_data: [] """ |
