#30807: test_extract_file_permissions test fails when umask is set to 000.
-----------------------------------+------------------------------------
     Reporter:  Brady              |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by felixxm):

 * cc: Nick Pope (added)
 * stage:  Unreviewed => Accepted
 * component:  Uncategorized => Testing framework


Comment:

 Thanks for the report. I have a similar issue on Linux after setting
 `umask` to `0`, e.g.
 {{{
 FAIL: test_extract_file_permissions (utils_tests.test_archive.TestArchive)
 [foobar.tar.bz2]
 archive.extract() preserves file permissions.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "django/tests/utils_tests/test_archive.py", line 48, in
 test_extract_file_permissions
     self.assertEqual(os.stat(filepath).st_mode & mask, 0o664 & ~umask)
 AssertionError: 438 != 436
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30807#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.6aebdcdd105d3cb9a4f3b340878c93aa%40djangoproject.com.

Reply via email to